Borderou de evaluare (job #1087950)

Utilizator cosmyoPaunel Cosmin cosmyo Data 20 ianuarie 2014 00:00:33
Problema Easygraph Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:74:21: error: no matching function for call to ‘max(int&, __gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type&)’ mx = max(mx, d[i]); ^ user.cpp:74:21: note: candidates are: In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/local/include/c++/4.8.0/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: user.cpp:74:21: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}’) mx = max(mx, d[i]); ^ In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/local/include/c++/4.8.0/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed: user.cpp:74:21: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}’) mx = max(mx, d[i]); ^ In file included from /usr/local/include/c++/4.8.0/algorithm:62:0, from user.cpp:3: /usr/local/include/c++/4.8.0/bits/stl_algo.h:4254:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>) max(initializer_list<_Tp> __l) ^ /usr/local/include/c++/4.8.0/bits/stl_algo.h:4254:5: note: template argument deduction/substitution failed: user.cpp:74:21: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’ mx = max(mx, d[i]); ^ In file included from /usr/local/include/c++/4.8.0/algorithm:62:0, from user.cpp:3: /usr/local/include/c++/4.8.0/bits/stl_algo.h:4259:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare) max(initializer_list<_Tp> __l, _Compare __comp) ^ /usr/local/include/c++/4.8.0/bits/stl_algo.h:4259:5: note: template argument deduction/substitution failed: user.cpp:74:21: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’ mx = max(mx, d[i]); ^

Ceva nu functioneaza?