Problem tickethandling
User NgMinSong123
Submission Time 2023-12-13 10:18:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tickethandling.cpp: In function ‘int main()’:
tickethandling.cpp:16:17: error: no matching function for call to ‘std::deque<long long int>::pop_front(long long int&)’
16 | A.pop_front(d);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from tickethandling.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate expects 0 arguments, 1 provided
tickethandling.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
tickethandling.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^