Problem card
User cheryltkx
Submission Time 2026-04-25 10:28:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:20:7: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = int; _Alloc = std::allocator<int>]’
20 | 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 card.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: declared here
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
card.cpp:21:18: error: ‘temp’ was not declared in this scope; did you mean ‘temo’?
21 | dq.push_front(temp);
| ^~~~
| temo