Borderou de evaluare (job #670591)

Utilizator vlad.doruIon Vlad-Doru vlad.doru Data 29 ianuarie 2012 15:11:19
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void insert(int, int)’: user.cpp:18: warning: comparison between signed and unsigned integer expressions user.cpp: In function ‘void sterge(int, int)’: user.cpp:30: warning: comparison between signed and unsigned integer expressions user.cpp:32: error: no matching function for call to ‘std::vector<int, std::allocator<int> >::erase(int&)’ /usr/include/c++/4.4/bits/vector.tcc:133: note: candidates are: __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> > 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 = int, _Alloc = std::allocator<int>] /usr/include/c++/4.4/bits/vector.tcc:145: note: __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> > 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 = int, _Alloc = std::allocator<int>] user.cpp:29: warning: unused variable ‘ok’ user.cpp: In function ‘void query(int, int)’: user.cpp:41: warning: comparison between signed and unsigned integer expressions user.cpp:45: error: ‘cout’ was not declared in this scope

Ceva nu functioneaza?