Problem catlunch
User christal
Submission Time 2023-12-18 15:18:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:13:11: error: ‘pq’ was not declared in this scope
13 | cout << pq.top(satisf) << '\n';
| ^~
catlunch.cpp:14:34: error: no matching function for call to ‘std::priority_queue<int, std::vector<int> >::pop(std::priority_queue<int, std::vector<int> >&)’
14 | int current = satisf.pop(satisf);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from catlunch.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:662:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = int; _Sequence = std::vector<int>; _Compare = std::less<int>]’
662 | pop()
| ^~~
/usr/include/c++/9/bits/stl_queue.h:662:7: note: candidate expects 0 arguments, 1 provided