Borderou de evaluare (job #1792243)
Utilizator | Data | 30 octombrie 2016 11:31:59 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve()’:
user.cpp:40:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<q.size(); i++)
^
user.cpp:42:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<a[q[i]].size(); j++)
^
user.cpp: At global scope:
user.cpp:59:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator<short unsigned int*, std::vector<short unsigned int> >; _Funct = void (*)(int&)]’:
user.cpp:63:36: required from here
/usr/include/c++/4.8/bits/stl_algo.h:4440:14: error: invalid initialization of reference of type ‘int&’ from expression of type ‘short unsigned int’
__f(*__first);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !