Problem | dijkstra |
---|---|
User | PlayVoltz |
Submission Time | 2023-08-11 00:29:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘long long unsigned int dijkstra(long long unsigned int)’:
dijkstra.cpp:30:21: error: ‘i’ was not declared in this scope
30 | if (!dj[i] && (dj[cnode] + num.second < dj[num.first])) {
| ^
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:46:14: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘struct std::pair<int, int>’} has no member named ‘push_back’
46 | vect[a][b].push_back(make_pair(b, c));
| ^~~~~~~~~
dijkstra.cpp:47:14: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘struct std::pair<int, int>’} has no member named ‘push_back’
47 | vect[b][a].push_back(make_pair(a, c));
| ^~~~~~~~~