| Problem | dijkstra |
|---|---|
| User | Yinnotayl64 |
| Submission Time | 2026-11-12 15:36:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:26:13: error: ‘d’ was not declared in this scope
26 | if (d > dist[tung.second]) continue;
| ^
dijkstra.cpp:30:22: error: ‘v’ was not declared in this scope
30 | dist[v] = d + w;
| ^
dijkstra.cpp:30:27: error: ‘d’ was not declared in this scope
30 | dist[v] = d + w;
| ^
dijkstra.cpp:30:31: error: ‘w’ was not declared in this scope
30 | dist[v] = d + w;
| ^
dijkstra.cpp:31:37: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
31 | pq.push({dist[v], v}