Borderou de evaluare (job #568215)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Clasa2 | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 oct. 2020 19:43:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27:1: error: stray ‘\’ in program
user.cpp:27:1: error: stray ‘\’ in program
user.cpp: In function ‘int main()’:
user.cpp:22:11: error: no matching function for call to ‘std::vector<long long int>::erase(ll&)’
user.cpp:22:11: 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 = long long int, _Alloc = std::allocator<long long int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = long long int*]
/usr/include/c++/4.6/bits/vector.tcc:135:5: note: no known conversion for argument 1 from ‘ll {aka long long int}’ to ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long 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 = long long int, _Alloc = std::allocator<long long int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = long long int*]
/usr/include/c++/4.6/bits/vector.tcc:147:5: note: candidate expects 2 arguments, 1 provided
user.cpp:26:10: error: expected ‘;’ before numeric constant
user.cpp:26:11: warning: statement has no effect [-Wunused-value]