Problem dijkstra
User PlayVoltz
Submission Time 2023-08-11 00:50:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘long long unsigned int dijkstra(long long unsigned int)’:
dijkstra.cpp:13:17: error: no matching function for call to ‘std::priority_queue<std::pair<long long unsigned int, long long unsigned int>, std::vector<std::pair<long long unsigned int, long long unsigned int> >, std::greater<std::pair<long long unsigned int, long long unsigned int> > >::push(int, long long unsigned int&)’
13 | pq.push(0, node);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from dijkstra.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long long unsigned int, long long unsigned int>; _Sequence = std::vector<std::pair<long long unsigned int, long long unsigned int> >