0_0_39611743_27822.cpp: In function 'void NEXT()':
0_0_39611743_27822.cpp:16:54: error: reference to 'next' is ambiguous
16 | while(x > 0 && s[x + 1] != s[i]) x = next[x];
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:66,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
from .\stdc++.h:51:
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_39611743_27822.cpp:10:15: note: 'long long int next [1000005]'
10 | int n, t = 1, next[N];
| ^~~~
0_0_39611743_27822.cpp:19:46: error: reference to 'next' is ambiguous
19 | if(i % z < 1 && i / z > 1 && next[x] == i - z * 2){
| ^~~~
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_39611743_27822.cpp:10:15: note: 'long long int next [1000005]'
10 | int n, t = 1, next[N];
| ^~~~
0_0_39611743_27822.cpp:20:25: error: reference to 'next' is ambiguous
20 | next[i] = x;
| ^~~~
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_39611743_27822.cpp:10:15: note: 'long long int next [1000005]'
10 | int n, t = 1, next[N];
| ^~~~
0_0_39611743_27822.cpp:22:23: error: reference to 'next' is ambiguous
22 | }else next[i] = 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_39611743_27822.cpp:10:15: note: 'long long int next [1000005]'
10 | int n, t = 1, next[N];
| ^~~~
|