Borderou de evaluare (job #2937383)

Utilizator PHOSSESSEDProsie Radu-Teodor PHOSSESSED Data 10 noiembrie 2022 11:37:43
Problema Easygraph Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void testcase()': main.cpp:51:15: warning: overflow in conversion from 'long long int' to 'int' changes value from '-1000000000000000000' to '1486618624' [-Woverflow] 51 | int rez = MINF; | ^~~~ main.cpp:54:45: error: no matching function for call to 'max(int&, long long int)' 54 | rez = max(rez,dinamica(i,vecini)); | ^ In file included from /usr/include/c++/10/bits/char_traits.h:39, from /usr/include/c++/10/ios:40, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)' 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed: main.cpp:54:45: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int') 54 | rez = max(rez,dinamica(i,vecini)); | ^ In file included from /usr/include/c++/10/bits/char_traits.h:39, from /usr/include/c++/10/ios:40, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed: main.cpp:54:45: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int') 54 | rez = max(rez,dinamica(i,vecini)); | ^ Non zero exit status: 1

Ceva nu functioneaza?