Problem | eeducation |
---|---|
User | cat |
Submission Time | 2024-07-06 12:01:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eeducation.cpp: In function ‘int main()’:
eeducation.cpp:19:24: error: no matching function for call to ‘std::deque<int>::erase(int&)’
19 | a.erase(num);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from eeducation.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 ‘in