Borderou de evaluare (job #1508325)

Utilizator MKLOLDragos Ristache MKLOL Data 22 octombrie 2015 14:59:08
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void make()’: user.cpp:12:5: error: reference to ‘next’ is ambiguous next[1]=0; ^ user.cpp:8:11: note: candidates are: int next [2000002] int S1,S2,next[Nmax],rez[1234],r,ras; ^ 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:14:45: error: reference to ‘next’ is ambiguous while(k >= 1 && v[k+1] != v[i]) k = next[k]; ^ user.cpp:8:11: note: candidates are: int next [2000002] int S1,S2,next[Nmax],rez[1234],r,ras; ^ 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:16:13: error: reference to ‘next’ is ambiguous next[i] = k; ^ user.cpp:8:11: note: candidates are: int next [2000002] int S1,S2,next[Nmax],rez[1234],r,ras; ^ 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: In function ‘int main()’: user.cpp:33:17: error: reference to ‘next’ is ambiguous k = next[k]; ^ user.cpp:8:11: note: candidates are: int next [2000002] int S1,S2,next[Nmax],rez[1234],r,ras; ^ 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 ^

Ceva nu functioneaza?