Borderou de evaluare (job #1341259)

Utilizator BLz0rDospra Cristian BLz0r Data 12 februarie 2015 16:25:23
Problema Ben Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:35:3: error: reference to ‘begin’ is ambiguous begin[st]++; ^ user.cpp:11:5: note: candidates are: int begin [30002] int begin[Nmax], interv[Nmax], a[Nmax]; ^ In file included from /usr/include/c++/4.8/string:51:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/range_access.h:87:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm]) begin(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/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/include/c++/4.8/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/include/c++/4.8/utility:74:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:2: /usr/include/c++/4.8/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:49:38: error: reference to ‘begin’ is ambiguous rez *= aranj ( pompe - interv[i] + begin[i], begin[i] ); ^ user.cpp:11:5: note: candidates are: int begin [30002] int begin[Nmax], interv[Nmax], a[Nmax]; ^ In file included from /usr/include/c++/4.8/string:51:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/range_access.h:87:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm]) begin(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/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/include/c++/4.8/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/include/c++/4.8/utility:74:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:2:

Ceva nu functioneaza?