Problem dijkstra
User sharelletqx
Submission Time 2026-08-01 09:39:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:6:8: error: expected unqualified-id before ‘<<’ token
6 | vector<<int,int>> adj[n+5];
| ^~
dijkstra.cpp:10:3: error: ‘adj’ was not declared in this scope
10 | adj[u].push_back({v,w});
| ^~~
dijkstra.cpp:22:14: error: expected primary-expression before ‘/=’ token
22 | if(dist[u]=/=d)continue;
| ^~
dijkstra.cpp:23:17: error: ‘adj’ was not declared in this scope
23 | for(auto[v,w]:adj[u]){
| ^~~
dijkstra.cpp:26:24: error: no matching function for call to ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::push(<brace-enclosed initializer list>)’
26 | pq.push({dist[v],v});
| ^
In file included from /usr/include/c++/9/queue:64,
from /u