Borderou de evaluare (job #1050803)

Utilizator vlady1997Vlad Bucur vlady1997 Data 9 decembrie 2013 10:08:22
Problema Lupul Urias si Rau Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:37:26: error: no matching function for call to ‘std::multiset<std::pair<int, int> >::erase(int&)’ h.erase(i); ^ user.cpp:37:26: note: candidates are: In file included from /usr/local/include/c++/4.8.0/set:62:0, from user.cpp:4: /usr/local/include/c++/4.8.0/bits/stl_multiset.h:536: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<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >] erase(const_iterator __position) ^ /usr/local/include/c++/4.8.0/bits/stl_multiset.h:536:7: note: no known conversion for argument 1 from ‘int’ to ‘std::multiset<std::pair<int, int> >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<int, int> >}’ /usr/local/include/c++/4.8.0/bits/stl_multiset.h:566:7: note: std::multiset<_Key, _Compare, _Alloc>::size_type std::multiset<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::size_type = unsigned int; std::multiset<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>] erase(const key_type& __x) ^ /usr/local/include/c++/4.8.0/bits/stl_multiset.h:566:7: note: no known conversion for argument 1 from ‘int’ to ‘const key_type& {aka const std::pair<int, int>&}’ /usr/local/include/c++/4.8.0/bits/stl_multiset.h:587: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<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >] erase(const_iterator __first, const_iterator __last) ^ /usr/local/include/c++/4.8.0/bits/stl_multiset.h:587:7: note: candidate expects 2 arguments, 1 provided

Ceva nu functioneaza?