Borderou de evaluare (job #384373)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Vrăji (clasa a 5-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 iul. 2018 18:14:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:19: error: no matching function for call to ‘max(int)’
user.cpp:13:19: 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:18:23: error: no matching function for call to ‘max(int)’
user.cpp:18:23: 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:10:18: warning: unused variable ‘c’ [-Wunused-variable]
user.cpp:10:21: warning: unused variable ‘d’ [-Wunused-variable]