| Problem | leave |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-08-29 20:28:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
leave.cpp: In function ‘int32_t main()’:
leave.cpp:19:7: error: ‘class std::queue<long long int>’ has no member named ‘push_back’
19 | qu.push_back(x);
| ^~~~~~~~~
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:27:15: error: ‘class std::queue<long long int>’ has no member named ‘top’; did you mean ‘