0_0_22356379_12728.cpp: In function 'int main()':
0_0_22356379_12728.cpp:14:10: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_22356379_12728.cpp:5:16: note: candidates are: int next [10010]
int str[10010],next[10010],text[1000010];
^
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++/algorithm:61,
from 0_0_22356379_12728.cpp:3:
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_22356379_12728.cpp:14:24: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_22356379_12728.cpp:5:16: note: candidates are: int next [10010]
int str[10010],next[10010],text[1000010];
^
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++/algorithm:61,
from 0_0_22356379_12728.cpp:3:
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_22356379_12728.cpp:21:3: error: reference to 'next' is ambiguous
next[1]=0;
^
0_0_22356379_12728.cpp:5:16: note: candidates are: int next [10010]
int str[10010],next[10010],text[1000010];
^
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++/algorithm:61,
from 0_0_22356379_12728.cpp:3:
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_22356379_12728.cpp:25:36: error: reference to 'next' is ambiguous
while(k>0&&str[i+1]!=str[k+1])k=next[k];
^
0_0_22356379_12728.cpp:5:16: note: candidates are: int next [10010]
int str[10010],next[10010],text[1000010];
^
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++/algorithm:61,
from 0_0_22356379_12728.cpp:3:
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_22356379_12728.cpp:27:4: error: reference to 'next' is ambiguous
next[i+1]=k;
^
0_0_22356379_12728.cpp:5:16: note: candidates are: int next [10010]
int str[10010],next[10010],text[1000010];
^
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++/algorithm:61,
from 0_0_22356379_12728.cpp:3:
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_22356379_12728.cpp:32:37: error: reference to 'next' is ambiguous
while(k>0&&str[k+1]!=text[i+1])k=next[k];
^
0_0_22356379_12728.cpp:5:16: note: candidates are: int next [10010]
int str[10010],next[10010],text[1000010];
^
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++/algorithm:61,
from 0_0_22356379_12728.cpp:3:
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
^
|