Problem card
User ayeohkay
Submission Time 2023-12-07 22:59:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:21:16: error: no matching function for call to ‘std::deque<int>::erase(int)’
21 | card.erase(1);
| ^
In file included from /usr/include/c++/9/deque:67,
from card.cpp:1:
/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: note: no known conversion for argument 1 from ‘int’ to ‘std::deque<int>::const_iterator’ {aka ‘std::_Deque_iterator<int, const int&, const int*>’}