Borderou de evaluare (job #1144801)

Utilizator dragangabrielDragan Andrei Gabriel dragangabriel Data 17 martie 2014 17:11:28
Problema Jstc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int find(int)’: user.cpp:13:9: error: reference to ‘next’ is ambiguous if (next[x]) return find(next[x]); ^ user.cpp:5:39: note: candidates are: int next [1000005] int n,i,j,k,st[1000005],m,t,op,top,it,next[1000005]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:3: /usr/local/include/c++/4.8.0/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:13:30: error: reference to ‘next’ is ambiguous if (next[x]) return find(next[x]); ^ user.cpp:5:39: note: candidates are: int next [1000005] int n,i,j,k,st[1000005],m,t,op,top,it,next[1000005]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:3: /usr/local/include/c++/4.8.0/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: In function ‘int main()’: user.cpp:30:13: error: reference to ‘next’ is ambiguous next[st[top]]=op; ^ user.cpp:5:39: note: candidates are: int next [1000005] int n,i,j,k,st[1000005],m,t,op,top,it,next[1000005]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:3: /usr/local/include/c++/4.8.0/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 ^

Ceva nu functioneaza?