Problem queuecutting
User Khai
Submission Time 2024-06-27 17:07:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

queuecutting.cpp: In function ‘int main()’:
queuecutting.cpp:26:27: error: no matching function for call to ‘std::deque<int>::pop_front(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
26 | vec.pop_front(vec[0]);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from queuecutting.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = int; _Alloc = std::allocator<int>]’
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate expects 0 arguments, 1 provided