Problem | deathray |
---|---|
User | tacticalnerd |
Submission Time | 2024-11-13 10:12:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deathray.cpp: In function ‘int main()’:
deathray.cpp:27:19: error: no matching function for call to ‘std::multiset<int, std::greater<int> >::erase(std::reverse_iterator<std::_Rb_tree_const_iterator<int> >&)’
27 | l.erase(it);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from deathray.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:639:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::erase(std::multiset<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::greater<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>]’
6