Problem dijkstra
User MS
Submission Time 2023-08-30 00:04:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:20:39: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
20 | pair<int,int> index = tovisit.top();
| ^~~
| pop