0_0_18149200_28548.cpp: In function 'bool check(int)':
0_0_18149200_28548.cpp:38:25: error: no matching function for call to 'std::multiset<int>::erase(std::multiset<int>::reverse_iterator)'
se.erase(se.rbegin());
^
0_0_18149200_28548.cpp:38:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
from 0_0_18149200_28548.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:575:7: note: std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::erase(std::multiset<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::less<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>]
erase(const_iterator __position)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:575:7: note: no known conversion for argument 1 from 'std::multiset<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<int> >}' to 'std::multiset<int>::const_iterator {aka std::_Rb_tree_const_iterator<int>}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:605:7: note: std::multiset<_Key, _Compare, _Alloc>::size_type std::multiset<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::multiset<_Key, _Compare, _Alloc>::key_type = int]
erase(const key_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:605:7: note: no known conversion for argument 1 from 'std::multiset<int>::reverse_iterator {aka std::reverse_iterator<std::_Rb_tree_const_iterator<int> >}' to 'const key_type& {aka const int&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:627:7: note: std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::erase(std::multiset<_Key, _Compare, _Alloc>::const_iterator, std::multiset<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::less<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>]
erase(const_iterator __first, const_iterator __last)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:627:7: note: candidate expects 2 arguments, 1 provided
|