Borderou de evaluare (job #162325)

Utilizator avatar cutzculacke Dinca Teodora cutzculacke IP ascuns
Problemă 2048 (clasa a 5-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 27 oct. 2015 12:45:28 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:66:15: error: reference to ‘max’ is ambiguous user.cpp:9:56: error: candidates are: int max /usr/include/c++/4.6/bits/stl_algo.h:4199:5: error: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare) /usr/include/c++/4.6/bits/stl_algo.h:4194:5: error: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>) /usr/include/c++/4.6/bits/stl_algobase.h:254:5: error: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) /usr/include/c++/4.6/bits/stl_algobase.h:210:5: error: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) user.cpp:67:13: error: expected ‘;’ before ‘if’ user.cpp:74:11: error: reference to ‘max’ is ambiguous user.cpp:9:56: error: candidates are: int max /usr/include/c++/4.6/bits/stl_algo.h:4199:5: error: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare) /usr/include/c++/4.6/bits/stl_algo.h:4194:5: error: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>) /usr/include/c++/4.6/bits/stl_algobase.h:254:5: error: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) /usr/include/c++/4.6/bits/stl_algobase.h:210:5: error: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) user.cpp:75:5: error: expected ‘;’ before ‘}’ token