Borderou de evaluare (job #666308)

Utilizator MciprianMMciprianM MciprianM Data 22 ianuarie 2012 11:50:46
Problema Planificare Status done
Runda Algoritmiada 2012 - Runda 2, Open Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int greedy2(int)’: user.cpp:52: warning: ‘auto’ will change meaning in C++0x; please remove it user.cpp:52: error: ISO C++ forbids declaration of ‘it’ with no type user.cpp:52: error: cannot convert ‘std::_Rb_tree_const_iterator<std::pair<int, int> >’ to ‘int’ in initialization user.cpp:53: error: no match for ‘operator!=’ in ‘it != myS.std::set<_Key, _Compare, _Alloc>::end [with _Key = std::pair<int, int>, _Compare = mycompare, _Alloc = std::allocator<std::pair<int, int> >]()’ user.cpp:54: error: base operand of ‘->’ is not a pointer user.cpp:55: error: no matching function for call to ‘std::set<std::pair<int, int>, mycompare, std::allocator<std::pair<int, int> > >::erase(int&)’ /usr/include/c++/4.4/bits/stl_set.h:475: 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<int, int>, _Compare = mycompare, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.4/bits/stl_set.h:490: 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<int, int>, _Compare = mycompare, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.4/bits/stl_set.h:505: 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<int, int>, _Compare = mycompare, _Alloc = std::allocator<std::pair<int, int> >] user.cpp:45: warning: unused variable ‘j’

Ceva nu functioneaza?