Problem | dijkstra |
---|---|
User | jmuzhen |
Submission Time | 2024-10-01 15:01:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:33:11: error: ‘n’ was not declared in this scope
33 | if (dist[n-1] == 1e9) dist[n-1] = -1;
| ^
dijkstra.cpp:34:18: error: ‘n’ was not declared in this scope
34 | cout << dist[n-1];
| ^