Borderou de evaluare (job #2413676)

Utilizator bombardierBsa as bombardier Data 23 aprilie 2019 17:09:36
Problema Sirag 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:48:17: error: no matching function for call to 'std::set<int>::erase()' myset.erase(); ^ In file included from /usr/include/c++/6/set:61:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:87, from main.cpp:1: /usr/include/c++/6/bits/stl_set.h:571:7: note: candidate: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>] erase(const_iterator __position) ^~~~~ /usr/include/c++/6/bits/stl_set.h:571:7: note: candidate expects 1 argument, 0 provided /usr/include/c++/6/bits/stl_set.h:601:7: note: candidate: std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = int] erase(const key_type& __x) ^~~~~ /usr/include/c++/6/bits/stl_set.h:601:7: note: candidate expects 1 argument, 0 provided /usr/include/c++/6/bits/stl_set.h:623:7: note: candidate: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>] erase(const_iterator __first, const_iterator __last) ^~~~~ /usr/include/c++/6/bits/stl_set.h:623:7: note: candidate expects 2 arguments, 0 provided Non zero exit status: 1

Ceva nu functioneaza?