F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 06:31:47, Gzip enabled