Borderou de evaluare (job #112264)

Utilizator mariusdrgdragus marius mariusdrg Data 4 decembrie 2007 10:36:36
Problema Caraibe Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare in evaluator: user.cpp: In function 'int main()': user.cpp:37: error: no match for 'operator=' in 'it = s.std::set<_Key, _Compare, _Alloc>::begin [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> >]()' /usr/include/c++/4.2/bits/stl_tree.h:223: note: candidates are: std::_Rb_tree_const_iterator<std::pair<int, int> >& std::_Rb_tree_const_iterator<std::pair<int, int> >::operator=(const std::_Rb_tree_const_iterator<std::pair<int, int> >&) user.cpp:50: error: no match for 'operator=' in 'it = s.std::set<_Key, _Compare, _Alloc>::begin [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> >]()' /usr/include/c++/4.2/bits/stl_tree.h:223: note: candidates are: std::_Rb_tree_const_iterator<std::pair<int, int> >& std::_Rb_tree_const_iterator<std::pair<int, int> >::operator=(const std::_Rb_tree_const_iterator<std::pair<int, int> >&) user.cpp:53: error: no matching function for call to 'std::set<std::pair<long long int, int>, std::less<std::pair<long long int, int> >, std::allocator<std::pair<long long int, int> > >::erase(std::_Rb_tree_const_iterator<std::pair<int, int> >&)' /usr/include/c++/4.2/bits/stl_set.h:357: note: candidates are: void std::set<_Key, _Compare, _Alloc>::erase(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::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> >] /usr/include/c++/4.2/bits/stl_set.h:372: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::size_type std::set<_Key, _Compare, _Alloc>::erase(const _Key&) [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> >] /usr/include/c++/4.2/bits/stl_set.h:387: note: void std::set<_Key, _Compare, _Alloc>::erase(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::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> >]

Ceva nu functioneaza?