Problem deque
User chickengoat
Submission Time 2026-02-12 20:49:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deque.cpp: In function ‘int main()’:
deque.cpp:24:8: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
24 | dq.pop_front;
| ~~~^~~~~~~~~
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from deque.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: declared here
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
deque.cpp:37:8: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
37 | dq.pop_front;
| ~~~^~~~~~~~~
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
fr