Borderou de evaluare (job #1447803)
Utilizator | Data | 5 iunie 2015 12:49:36 | |
---|---|---|---|
Problema | Metrou2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:36:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<gr[nod].size(); ++i)
^
user.cpp: In function ‘void dinamic(int, int, int)’:
user.cpp:56:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<luc.size(); ++i)
^
user.cpp: In function ‘int main()’:
user.cpp:107:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<gr[ sim[i].id ].size(); ++i)
^
user.cpp:110:27: error: no matching function for call to ‘std::vector<int>::erase()’
luc.erase();
^
user.cpp:110:27: 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 = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8/bits/vector.tcc:134:5: note: candidate expects 1 argument, 0 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 = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8/bits/vector.tcc:146:5: note: candidate expects 2 arguments, 0 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !