Problem dijkstra
User PerihelionfromAphelion
Submission Time 2026-09-08 16:13:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int32_t main()’:
dijkstra.cpp:18:19: error: ‘n’ was not declared in this scope
18 | for (i = 1; i <= n; i++) dist[i] = 2e9 + 6;
| ^
dijkstra.cpp:26:17: error: ‘n’ was not declared in this scope
26 | if (d != dist[n]) continue;
| ^
dijkstra.cpp:37:11: error: ‘n’ was not declared in this scope
37 | if (dist[n] == 2e9 + 6) cout << -1;
| ^