Problem card
User meowmeow
Submission Time 2023-06-07 17:43:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:16:38: error: invalid use of void expression
16 | cards.push_back(cards.pop_front());
| ^
card.cpp:20:18: error: no matching function for call to ‘std::deque<int>::erase(int)’
20 | cards.erase(1);
| ^
In file included from /usr/include/c++/9/deque:67,
from card.cpp:3:
/usr/include/c++/9/bits/stl_deque.h:1807:7: note: candidate: ‘std::deque<_Tp, _Alloc>::iterator std::deque<_Tp, _Alloc>::erase(std::deque<_Tp, _Alloc>::const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<int, int&, int*>; std::deque<_Tp, _Alloc>::const_iterator = std::_Deque_iterator<int, const int&, const int*>]’
1807 | erase(const_iterator __position)
| ^~~~~
/usr/include/c++/9/bits/stl_deque.h:1807:28: not