Problem dijkstra
User aliceting2021
Submission Time 2026-08-01 09:36:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> N >> E;
| ^~~
dijkstra.cpp:4:2: error: ‘vector’ was not declared in this scope
4 | vector<pair<int,int>> adj[N+5];
| ^~~~~~
dijkstra.cpp:4:9: error: ‘pair’ was not declared in this scope
4 | vector<pair<int,int>> adj[N+5];
| ^~~~
dijkstra.cpp:4:14: error: expected primary-expression before ‘int’
4 | vector<pair<int,int>> adj[N+5];
| ^~~
dijkstra.cpp:8:3: error: ‘adj’ was not declared in this scope
8 | adj[U].push_back({V,W});
| ^~~
dijkstra.cpp:15:2: error: ‘priority_queue’ was not declared in this scope
15 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
| ^~~~~~~~~~~~~~
dijkstra.cpp:15:22: error: expected pr