Borderou de evaluare (job #1211456)
Utilizator | Data | 22 iulie 2014 17:00:32 | |
---|---|---|---|
Problema | Ismquery | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:30: error: no matching function for call to ‘std::vector<stackElem>::erase(long int&, long int&)’
st[stn].erase(pos,nrelem);
^
user.cpp:41:30: note: candidates are:
In file included from /usr/include/c++/4.8/vector:69:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = stackElem; _Alloc = std::allocator<stackElem>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<stackElem*, std::vector<stackElem> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = stackElem*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8/bits/vector.tcc:134:5: note: candidate expects 1 argument, 2 provided
/usr/include/c++/4.8/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = stackElem; _Alloc = std::allocator<stackElem>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<stackElem*, std::vector<stackElem> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = stackElem*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8/bits/vector.tcc:146:5: note: no known conversion for argument 1 from ‘long int’ to ‘std::vector<stackElem>::iterator {aka __gnu_cxx::__normal_iterator<stackElem*, std::vector<stackElem> >}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !