Borderou de evaluare (job #511010)

Utilizator avatar Tudor06 Musat Tudor Tudor06 IP ascuns
Problemă OZN (clasele 8-9) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 8 dec. 2019 18:04:37 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function 'int patrat(int, int, int)': user.cpp:73:45: error: no matching function for call to 'max(int&, short unsigned int&)' user.cpp:73:45: note: candidates are: /usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) /usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) user.cpp:74:45: error: no matching function for call to 'max(int&, short unsigned int&)' user.cpp:74:45: note: candidates are: /usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) /usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) user.cpp:75:55: error: no matching function for call to 'max(int&, short unsigned int&)' user.cpp:75:55: note: candidates are: /usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) /usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)