0_0_38869519_28274.cpp: In function 'void get(char*, int)':
0_0_38869519_28274.cpp:44:9: error: reference to 'next' is ambiguous
44 | next[0] = next[1] = 0;
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:62,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/char_traits.h:57,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:42,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_38869519_28274.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38869519_28274.cpp:28:5: note: 'int next [105]'
28 | int next[maxn];
| ^~~~
0_0_38869519_28274.cpp:44:19: error: reference to 'next' is ambiguous
44 | next[0] = next[1] = 0;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38869519_28274.cpp:28:5: note: 'int next [105]'
28 | int next[maxn];
| ^~~~
0_0_38869519_28274.cpp:47:21: error: reference to 'next' is ambiguous
47 | j = next[i];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38869519_28274.cpp:28:5: note: 'int next [105]'
28 | int next[maxn];
| ^~~~
0_0_38869519_28274.cpp:48:44: error: reference to 'next' is ambiguous
48 | while(j && p[i] != p[j]) j=next[j];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38869519_28274.cpp:28:5: note: 'int next [105]'
28 | int next[maxn];
| ^~~~
0_0_38869519_28274.cpp:49:17: error: reference to 'next' is ambiguous
49 | next[i+1] = p[i]==p[j] ? j+1 : 0;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38869519_28274.cpp:28:5: note: 'int next [105]'
28 | int next[maxn];
| ^~~~
0_0_38869519_28274.cpp: In function 'bool kmp(char*, char*, int, int)':
0_0_38869519_28274.cpp:56:44: error: reference to 'next' is ambiguous
56 | while(j && t[i] != p[j]) j=next[j];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38869519_28274.cpp:28:5: note: 'int next [105]'
28 | int next[maxn];
| ^~~~
|