Borderou de evaluare (job #1665067)
Utilizator | Data | 26 martie 2016 15:58:48 | |
---|---|---|---|
Problema | Naveplanare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool bellman(int, int)’:
user.cpp:26:17: warning: overflow in implicit constant conversion [-Woverflow]
dist[i] = INF;
^
user.cpp:35:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<graf[crt].size(); i++)
^
user.cpp: In function ‘int flux(int, int)’:
user.cpp:60:60: error: no matching function for call to ‘min(int&, short int&)’
flux_crt = min(flux_crt, capacitate[tata[i]][i]);
^
user.cpp:60:60: note: candidates are:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed:
user.cpp:60:60: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘short int’)
flux_crt = min(flux_crt, capacitate[tata[i]][i]);
^
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed:
user.cpp:60:60: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘short int’)
flux_crt = min(flux_crt, capacitate[tata[i]][i]);
^
user.cpp: In function ‘void afisare()’:
user.cpp:87:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<graf[i].size(); j++)
^
user.cpp:83:9: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !