Problem | dijkstra |
---|---|
User | usernamehere |
Submission Time | 2025-10-07 13:52:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:24:9: error: ‘ii’ was not declared in this scope; did you mean ‘pii’?
24 | ii p = pq.top();
| ^~
| pii
dijkstra.cpp:26:17: error: ‘p’ was not declared in this scope
26 | int d = p.first, u = p.second;
| ^
dijkstra.cpp:27:22: error: ‘u’ was not declared in this scope
27 | if (d > dist[u]) continue;
| ^
dijkstra.cpp:28:38: error: ‘u’ was not declared in this scope
28 | for (int i = 0; i < int((adj[u]).size()); i++){
| ^
dijkstra.cpp:30:38: error: ‘w’ was not declared in this scope
30 | if (dist[nu] > dist[u] + w){
| ^