Borderou de evaluare (job #534704)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cuart (clasa a 5-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 mar. 2020 19:44:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:88:44: error: no matching function for call to ‘max(long long int&, int&)’
user.cpp:88:44: 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)
/usr/include/c++/4.6/bits/stl_algo.h:4194:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
/usr/include/c++/4.6/bits/stl_algo.h:4199:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
user.cpp:97:44: error: no matching function for call to ‘max(long long int&, int&)’
user.cpp:97:44: 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)
/usr/include/c++/4.6/bits/stl_algo.h:4194:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
/usr/include/c++/4.6/bits/stl_algo.h:4199:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
user.cpp:78:36: warning: unused variable ‘cm’ [-Wunused-variable]
user.cpp:78:41: warning: unused variable ‘cg’ [-Wunused-variable]