Problem wabot
User Pyrros
Submission Time 2023-12-04 22:31:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wabot.cpp: In function ‘int main()’:
wabot.cpp:24:39: 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> >, std::greater<long long int> >::push(ll&)’
24 | if(m[l].size() == 0) pq.push(l);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from wabot.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::greater<long long int>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>