Problem card
User Ningja
Submission Time 2023-11-09 23:39:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:18:17: error: void value not ignored as it ought to be
18 | a=d.pop_front();
| ~~~~~~~~~~~^~
card.cpp:19:18: error: expected ‘;’ before ‘}’ token
19 | d.push_back(a)
| ^
| ;
20 | }
| ~
card.cpp:22:19: error: no matching function for call to ‘std::deque<int>::pop_front(int)’
22 | a=d.pop_front(2);
| ^
In file included from /usr/include/c++/9/deque:67,
from card.cpp:2:
/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
card.cpp:23:18: error: expected ‘;’ before ‘}’ token