Problem | dijkstra |
---|---|
User | Ush |
Submission Time | 2023-11-16 09:31:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int32_t main()’:
dijkstra.cpp:16:9: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
16 | graph[x].push_back({w, y});
| ^~~~~
| isgraph
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:23: error: ‘adjlist’ was not declared in this scope