Problem | leave |
---|---|
User | ETkilobyte |
Submission Time | 2024-12-19 16:46:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leave.cpp: In function ‘int main()’:
leave.cpp:15:16: error: no matching function for call to ‘std::__cxx11::list<long long int>::erase(long long int&)’
15 | x.erase(c);
| ^
In file included from /usr/include/c++/9/list:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from leave.cpp:1:
/usr/include/c++/9/bits/list.tcc:150:5: note: candidate: ‘std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::erase(std::__cxx11::list<_Tp, _Alloc>::const_iterator) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<long long int>; std::__cxx11::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<long long int>]’
150 | list<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/list.tcc:152:26: note: no kno