0_0_17944531_26539.cpp: In function 'void getnextarray()':
0_0_17944531_26539.cpp:38:5: error: reference to 'next' is ambiguous
next[1]=0;
^
0_0_17944531_26539.cpp:34:5: note: candidates are: int next [10010]
int next[maxm];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_17944531_26539.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/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
^
0_0_17944531_26539.cpp:42:37: error: reference to 'next' is ambiguous
while(j>0 && b[j+1]!=b[j])j=next[j];
^
0_0_17944531_26539.cpp:34:5: note: candidates are: int next [10010]
int next[maxm];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_17944531_26539.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/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
^
0_0_17944531_26539.cpp:44:9: error: reference to 'next' is ambiguous
next[i]=j;
^
0_0_17944531_26539.cpp:34:5: note: candidates are: int next [10010]
int next[maxm];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_17944531_26539.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/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
^
0_0_17944531_26539.cpp: In function 'int kmp()':
0_0_17944531_26539.cpp:52:35: error: reference to 'next' is ambiguous
while(j>0&&b[j+1]!=a[i])j=next[j];
^
0_0_17944531_26539.cpp:34:5: note: candidates are: int next [10010]
int next[maxm];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_17944531_26539.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/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
^
0_0_17944531_26539.cpp:57:15: error: reference to 'next' is ambiguous
j=next[j];
^
0_0_17944531_26539.cpp:34:5: note: candidates are: int next [10010]
int next[maxm];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_17944531_26539.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/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
^
|