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

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:21:3: error: ‘nt’ was not declared in this scope; did you mean ‘int’?
21 | nt u = pq.top().second;
| ^~
| int
dijkstra.cpp:23:12: error: ‘U’ was not declared in this scope
23 | if (dist[U] =/ d) continue;
| ^
dijkstra.cpp:23:16: error: expected primary-expression before ‘/’ token
23 | if (dist[U] =/ d) continue;
| ^
dijkstra.cpp:24:16: error: expected initializer before ‘;’ token
24 | for(auto[V,W];adj[U]){
| ^
dijkstra.cpp:24:21: error: ‘U’ was not declared in this scope
24 | for(auto[V,W];adj[U]){
| ^
dijkstra.cpp:24:23: error: expected ‘;’ before ‘)’ token
24 | for(auto[V,W];adj[U]){
| ^
| ;
dijkstra.cpp:25:11: error: ‘w’ was not declared in this scope
25 | if(d + w <dist[V