Problem rollercoaster
User PyAce
Submission Time 2025-06-20 15:56:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:23:11: error: no matching function for call to ‘std::priority_queue<long long int>::push()’
23 | mq.push();
| ^
In file included from /usr/include/c++/9/queue:64,
from rollercoaster.cpp:2:
/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::less<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:7: note: candidate expects 1 argument, 0 provided
/usr/include/c++/9/bits/stl_queue.h:635:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::val