Problem leave
User PerihelionfromAphelion
Submission Time 2026-08-29 20:29:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leave.cpp: In function ‘int32_t main()’:
leave.cpp:24:12: error: no matching function for call to ‘std::queue<long long int>::pop(long long int&)’
24 | qu.pop(y);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from leave.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:292:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::pop() [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >]’
292 | pop()
| ^~~
/usr/include/c++/9/bits/stl_queue.h:292:7: note: candidate expects 0 arguments, 1 provided
leave.cpp:28:21: error: no matching function for call to ‘std::queue<long long int>::pop(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
28 | qu.pop(qu.front());
| ^<