Borderou de evaluare (job #1893746)

Utilizator akaprosAna Kapros akapros Data 25 februarie 2017 23:03:45
Problema RangeMode Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solve()’: user.cpp:63:38: error: no matching function for call to ‘std::set<Set>::erase(<brace-enclosed initializer list>)’ s.erase({*s.find({v[r]})}); ^ user.cpp:63:38: note: candidates are: In file included from /usr/include/c++/4.8/set:61:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:86, from user.cpp:1: /usr/include/c++/4.8/bits/stl_set.h:550:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Set>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Set>] erase(const_iterator __position) ^ /usr/include/c++/4.8/bits/stl_set.h:550:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::set<Set>::const_iterator {aka std::_Rb_tree_const_iterator<Set>}’ /usr/include/c++/4.8/bits/stl_set.h:580:7: note: std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::size_type = unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = Set] erase(const key_type& __x) ^ /usr/include/c++/4.8/bits/stl_set.h:580:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const key_type& {aka const Set&}’ /usr/include/c++/4.8/bits/stl_set.h:601:7: note: 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 = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Set>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Set>] erase(const_iterator __first, const_iterator __last) ^ /usr/include/c++/4.8/bits/stl_set.h:601:7: note: candidate expects 2 arguments, 1 provided user.cpp:72:38: error: no matching function for call to ‘std::set<Set>::erase(<brace-enclosed initializer list>)’ s.erase({*s.find({v[l]})}); ^ user.cpp:72:38: note: candidates are: In file included from /usr/include/c++/4.8/set:61:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:86, from user.cpp:1: /usr/include/c++/4.8/bits/stl_set.h:550:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Set>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Set>] erase(const_iterator __position) ^ /usr/include/c++/4.8/bits/stl_set.h:550:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::set<Set>::const_iterator {aka std::_Rb_tree_const_iterator<Set>}’ /usr/include/c++/4.8/bits/stl_set.h:580:7: note: std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::size_type = unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = Set] erase(const key_type& __x) ^ /usr/include/c++/4.8/bits/stl_set.h:580:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const key_type& {aka const Set&}’ /usr/include/c++/4.8/bits/stl_set.h:601:7: note: 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 = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Set>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Set>] erase(const_iterator __first, const_iterator __last) ^ /usr/include/c++/4.8/bits/stl_set.h:601:7: note: candidate expects 2 arguments, 1 provided user.cpp:83:42: error: no matching function for call to ‘std::set<Set>::erase(<brace-enclosed initializer list>)’ s.erase({*s.find({v[l]})}); ^ user.cpp:83:42: note: candidates are: In file included from /usr/include/c++/4.8/set:61:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:86, from user.cpp:1: /usr/include/c++/4.8/bits/stl_set.h:550:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = Set; _Compare = std::less<Set>; _Alloc = std::allocator<Set>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<Set>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<Set>] erase(const_iterator __position) ^ /usr/include/c++/4.8/bits/stl_set.h:550:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::set<Set>::const_iterator {aka std::_Rb_tree_const_iterator<Set>}’

Ceva nu functioneaza?