Borderou de evaluare (job #446705)

Utilizator avatar ComaniciDaniel Daniel Comanici ComaniciDaniel IP ascuns
Problemă Subsecvenţa (clasa a 7-a) Compilator cpp
Rundă lasm_13_03_2019_10_12b Status evaluat
Dată 14 mar. 2019 21:58:36 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:22:18: error: no matching function for call to ‘std::vector<int>::erase(int&)’ user.cpp:22:18: note: candidates are: /usr/include/c++/4.6/bits/vector.tcc:135:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = int*] /usr/include/c++/4.6/bits/vector.tcc:135:5: note: no known conversion for argument 1 from ‘int’ to ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ /usr/include/c++/4.6/bits/vector.tcc:147:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = int*] /usr/include/c++/4.6/bits/vector.tcc:147:5: note: candidate expects 2 arguments, 1 provided