Problem | potatosalad |
---|---|
User | simps |
Submission Time | 2023-06-25 22:02:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:16:29: error: no matching function for call to ‘std::set<int>::erase(std::set<int>::reverse_iterator)’
16 | pot.erase(pot.rbegin());
| ^
In file included from /usr/include/c++/9/set:61,
from potatosalad.cpp:2:
/usr/include/c++/9/bits/stl_set.h:654:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>]’
654 | erase(const_iterator __position)
| ^~~~~
/usr/include/c++/9/bits/stl_set.h:654:28: note: no known conversion for arg