Problem dijkstra
User Ush
Submission Time 2023-11-16 09:33:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int32_t main()’:
dijkstra.cpp:22:14: error: ‘v’ was not declared in this scope
22 | int dist[v+1];
| ^
dijkstra.cpp:23:9: error: ‘dist’ was not declared in this scope
23 | memset(dist, -1, sizeof(dist));
| ^~~~
dijkstra.cpp:25:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
25 | distance[1] = 0;
| ^
dijkstra.cpp:30:5: error: expected initializer before ‘.’ token
30 | pq.top().second;
| ^
dijkstra.cpp:33:23: error: ‘node’ was not declared in this scope
33 | if ( u !=dist[node]) {
| ^~~~
dijkstra.cpp:37:31: error: ‘node’ was not declared in this scope
37 | for (auto i : adjlist[node]) {
| ^~~~
dijkstra.cpp:38:21: error: ‘edge’ was not declared in this scope
38 | int v = e