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_30400543_22750.cpp: In function 'int main()':
0_0_30400543_22750.cpp:61:20: error: no matching function for call to 'std::multiset<std::pair<long long int, int> >::erase(std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<long long int, int> > >&)'
       S.erase(temp2);
                    ^
0_0_30400543_22750.cpp:61:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:86,
                 from 0_0_30400543_22750.cpp:1:
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 = std::pair<long long int, int>; _Compare = std::less<std::pair<long long int, int> >; _Alloc = std::allocator<std::pair<long long int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<long long int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<long long int, 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::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<long long int, int> > >' to 'std::multiset<std::pair<long long int, int> >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<long long int, 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 = std::pair<long long int, int>; _Compare = std::less<std::pair<long long int, int> >; _Alloc = std::allocator<std::pair<long long int, int> >; std::multiset<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::multiset<_Key, _Compare, _Alloc>::key_type = std::pair<long long int, 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::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<long long int, int> > >' to 'const key_type& {aka const std::pair<long long int, 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 = std::pair<long long int, int>; _Compare = std::less<std::pair<long long int, int> >; _Alloc = std::allocator<std::pair<long long int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<long long int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<long long int, 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-12-01 19:40:01, Gzip enabled