Borderou de evaluare (job #1828768)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 13 decembrie 2016 20:57:52
Problema Croco Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘short int Flow(short int, short int)’: user.cpp:56:69: error: no matching function for call to ‘min(short int&, int)’ Min=min(Min,cap[father[j]][j]-flow[father[j]][j]); ^ user.cpp:56:69: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:61:0, from user.cpp:3: /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:56:69: note: deduced conflicting types for parameter ‘const _Tp’ (‘short int’ and ‘int’) Min=min(Min,cap[father[j]][j]-flow[father[j]][j]); ^ In file included from /usr/include/c++/4.8/algorithm:61:0, from user.cpp:3: /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:56:69: note: deduced conflicting types for parameter ‘const _Tp’ (‘short int’ and ‘int’) Min=min(Min,cap[father[j]][j]-flow[father[j]][j]); ^ 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:56:69: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short int’ Min=min(Min,cap[father[j]][j]-flow[father[j]][j]); ^ 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:4249:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare) min(initializer_list<_Tp> __l, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algo.h:4249:5: note: template argument deduction/substitution failed: user.cpp:56:69: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short int’ Min=min(Min,cap[father[j]][j]-flow[father[j]][j]); ^ user.cpp: At global scope: user.cpp:66:12: error: ‘::main’ must return ‘int’ short main() ^ user.cpp: In function ‘int main()’: user.cpp:71:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d",&N); ^ user.cpp:74:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]

Ceva nu functioneaza?