Problem | dijkstra |
---|---|
User | UponTheTaintedSorrow |
Submission Time | 2024-07-09 12:47:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘void dijkstra()’:
dijkstra.cpp:21:33: error: no matching function for call to ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::push(<brace-enclosed initializer list>)’
21 | pq.push({d[v],v});
| ^
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 = long long int; _Sequence = std::vector<long long int>; _Compare = std::greater<long long int>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = long long int]’
627 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:627:30: note: