Borderou de evaluare (job #2198231)

Utilizator RaduVFVintila Radu-Florian RaduVF Data 23 aprilie 2018 22:35:12
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Next(char*)’: user.cpp:14:5: error: reference to ‘next’ is ambiguous next[0]=0; ^~~~ user.cpp:7:5: note: candidates are: int next [2000005] int next[NMAX]; ^~~~ In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^~~~ user.cpp:16:38: error: reference to ‘next’ is ambiguous while(k>0 && A[k+1]!=A[i]) k=next[k]; ^~~~ user.cpp:7:5: note: candidates are: int next [2000005] int next[NMAX]; ^~~~ In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^~~~ user.cpp:18:9: error: reference to ‘next’ is ambiguous next[i]=k; ^~~~ user.cpp:7:5: note: candidates are: int next [2000005] int next[NMAX]; ^~~~ In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39,

Ceva nu functioneaza?