Problem dijkstra
User akqxolotl
Submission Time 2026-03-10 15:20:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp:1:7: error: ‘maxn’ was not declared in this scope
1 | int d[maxn];
| ^~~~
dijkstra.cpp:2:8: error: ‘maxn’ was not declared in this scope
2 | bool v[maxn];
| ^~~~
dijkstra.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<pii> adj[maxn];
| ^~~~~~
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:6:2: error: ‘ios_base’ has not been declared
6 | ios_base::sync_with_stdio(0);cin.tie(0);
| ^~~~~~~~
dijkstra.cpp:6:31: error: ‘cin’ was not declared in this scope
6 | ios_base::sync_with_stdio(0);cin.tie(0);
| ^~~
dijkstra.cpp:10:3: error: ‘adj’ was not declared in this scope
10 | adj[x].pb({y,w});
| ^~~
dijkstra.cpp:14:23: error: ‘d’ was not declared in this scope
14 | for(int i=1;i<=n;i++)d[i]=-1;
| ^
dijkstra.cpp:16:2: error: ‘priority_queue’ was not declar