Problem | escape |
---|---|
User | Dynonychus |
Submission Time | 2024-01-30 22:14:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
escape.cpp: In function ‘int main()’:
escape.cpp:51:25: 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> > >::push(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type, long long int&)’
51 | pq.push(-dist[b], b);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from escape.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 int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::less<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Seq