Problem | potatosalad |
---|---|
User | PyAce |
Submission Time | 2025-08-22 08:33:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:16:6: error: ‘class std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ has no member named ‘push_back’
16 | pq.push_back(a);
| ^~~~~~~~~
potatosalad.cpp:21:11: error: no matching function for call to ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::pop(long long int&)’
21 | pq.pop(c);
| ^
In file included from /usr/include/c++/9/queue:64,
from potatosalad.cpp:2:
/usr/include/c++/9/bits/stl_queue.h:662:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = long long int; _Sequence = std::vector<long long int>; _Compare = std::greater<long long int>]’
662 | pop()
| ^~~
/usr/include/c++/9/bits/stl_queue.h:662:7: note: candidate expects 0 argumen