Problem | dijkstra |
---|---|
User | shoryu386 |
Submission Time | 2023-05-21 21:01:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:26:84: error: template argument 3 is invalid
26 | priority_queue<pair<int , int>, vector<pair<int, int>>, greater<pair<int, int>>pq;// node , weight
| ^~
dijkstra.cpp:27:5: error: ‘pq’ was not declared in this scope
27 | pq.push(make_pair(0, 0));
| ^~
dijkstra.cpp:33:29: error: ‘currnode’ was not declared in this scope
33 | if (currdist >= ans[currnode]) continue;
| ^~~~~~~~
dijkstra.cpp:34:7: error: ‘currnode’ was not declared in this scope
34 | ans[currnode] = currdist;
| ^~~~~~~~