Problem dijkstra
User havinaaaaash
Submission Time 2024-12-16 11:21:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:10:42: error: template argument 1 is invalid
10 | vector<vector<pair<int, int>> adj(V+1);
| ^
dijkstra.cpp:10:42: error: template argument 2 is invalid
dijkstra.cpp:14:9: error: ‘adj’ was not declared in this scope
14 | adj[x].push_back({y, w});
| ^~~
dijkstra.cpp:18:84: error: template argument 3 is invalid
18 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>> temporary;
| ^~~~~~~~~
dijkstra.cpp:20:5: error: ‘temporary’ was not declared in this scope
20 | temporary.push({0, 1});
| ^~~~~~~~~
dijkstra.cpp:28:23: error: ‘adj’ was not declared in this scope
28 | for(pair edge:adj[curNode]){
|