Borderou de evaluare (job #957611)

Utilizator veleanduAlex Velea veleandu Data 5 iunie 2013 16:15:04
Problema Delay Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void df(int)’: user.cpp:52:3: error: reference to ‘begin’ is ambiguous begin[nod] = ++ord; ^ user.cpp:17:5: note: candidates are: int begin [16005] int begin[max_n], end[max_n], T[max_n], deep[max_n], ord; ^ In file included from /usr/local/include/c++/4.8.0/string:51:0, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/range_access.h:87:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm]) begin(_Tp (&__arr)[_Nm]) ^ /usr/local/include/c++/4.8.0/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) begin(const _Container& __cont) -> decltype(__cont.begin()) ^ /usr/local/include/c++/4.8.0/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&) begin(_Container& __cont) -> decltype(__cont.begin()) ^ In file included from /usr/local/include/c++/4.8.0/utility:74:0, from /usr/local/include/c++/4.8.0/algorithm:60, from user.cpp:1: /usr/local/include/c++/4.8.0/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>) begin(initializer_list<_Tp> __ils) noexcept ^ user.cpp:62:2: error: reference to ‘end’ is ambiguous end[nod] = ++ord; ^ user.cpp:17:19: note: candidates are: int end [16005] int begin[max_n], end[max_n], T[max_n], deep[max_n], ord; ^ In file included from /usr/local/include/c++/4.8.0/string:51:0, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/local/include/c++/4.8.0/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&) end(const _Container& __cont) -> decltype(__cont.end()) ^ /usr/local/include/c++/4.8.0/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&) end(_Container& __cont) -> decltype(__cont.end()) ^ In file included from /usr/local/include/c++/4.8.0/utility:74:0, from /usr/local/include/c++/4.8.0/algorithm:60, from user.cpp:1:

Ceva nu functioneaza?