Borderou de evaluare (job #1393426)

Utilizator rzvrzvNicolescu Razvan rzvrzv Data 19 martie 2015 13:48:00
Problema Curcubeu 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:46:17: error: reference to ‘next’ is ambiguous if(!next[j]) ^ user.cpp:6:48: note: candidates are: int next [1000002] int n,a[1000002],b[1000002],c[1000002],i,j,aux,next[1000002],st,dr,ans[1000002]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp:49:17: error: reference to ‘next’ is ambiguous next[j]=dr+1; ^ user.cpp:6:48: note: candidates are: int next [1000002] int n,a[1000002],b[1000002],c[1000002],i,j,aux,next[1000002],st,dr,ans[1000002]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp:53:21: error: reference to ‘next’ is ambiguous aux=next[j]; ^ user.cpp:6:48: note: candidates are: int next [1000002] int n,a[1000002],b[1000002],c[1000002],i,j,aux,next[1000002],st,dr,ans[1000002]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp:54:20: error: reference to ‘next’ is ambiguous if(next[j]<dr+1) ^ user.cpp:6:48: note: candidates are: int next [1000002] int n,a[1000002],b[1000002],c[1000002],i,j,aux,next[1000002],st,dr,ans[1000002]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp:56:21: error: reference to ‘next’ is ambiguous

Ceva nu functioneaza?