Borderou de evaluare (job #1718970)
Utilizator | Data | 19 iunie 2016 11:31:13 | |
---|---|---|---|
Problema | Symmetricgraph2 | Status | done |
Runda | Algoritmiada 2016 Runda 4 Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:28: warning: left shift count >= width of type [enabled by default]
const long long INF = 1 << 60;
^
user.cpp: In function ‘void bfs()’:
user.cpp:33:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[Nod].size(); ++ i)
^
user.cpp: In function ‘long long int fluxmax()’:
user.cpp:48:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < v[n].size(); ++j) {
^
user.cpp:54:66: error: no matching function for call to ‘min(int&, long long int)’
Min = min(Min, Cap[Dad][Nod] - Flux[Dad][Nod]);
^
user.cpp:54:66: 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:54:66: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’)
Min = min(Min, Cap[Dad][Nod] - Flux[Dad][Nod]);
^
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:54:66: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’)
Min = min(Min, Cap[Dad][Nod] - Flux[Dad][Nod]);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template argument deduction/substitution failed:
user.cpp:54:66: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
Min = min(Min, Cap[Dad][Nod] - Flux[Dad][Nod]);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !