Borderou de evaluare (job #494195)

Utilizator indestructiblecont de teste indestructible Data 20 octombrie 2010 22:14:59
Problema Zota & Chidil Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function 'void prepare()': user.cpp:43: warning: comparison between signed and unsigned integer expressions user.cpp:46: warning: comparison between signed and unsigned integer expressions user.cpp:53: warning: comparison between signed and unsigned integer expressions user.cpp:59: error: no matching function for call to 'std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::erase()' /usr/include/c++/4.2/bits/vector.tcc:109: note: candidates are: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.2/bits/vector.tcc:121: note: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >] user.cpp:59: error: no matching function for call to 'std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::erase()' /usr/include/c++/4.2/bits/vector.tcc:109: note: candidates are: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.2/bits/vector.tcc:121: note: typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >] user.cpp: In function 'int cauta1(int, int, int)': user.cpp:73: warning: comparison between signed and unsigned integer expressions user.cpp:76: warning: comparison between signed and unsigned integer expressions user.cpp:81: warning: comparison between signed and unsigned integer expressions user.cpp: In function 'int cauta2(int, int, int)': user.cpp:90: warning: comparison between signed and unsigned integer expressions user.cpp:93: warning: comparison between signed and unsigned integer expressions user.cpp:98: warning: comparison between signed and unsigned integer expressions

Ceva nu functioneaza?