0_0_39442031_19022.cpp: In function 'int main()':
0_0_39442031_19022.cpp:11:17: error: reference to 'next' is ambiguous
11 | next[1]=0;
| ^~~~
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_39442031_19022.cpp:4:7: note: 'int next [1000010]'
4 | int T,next[1000010],s[1000010],t[1000010];
| ^~~~
0_0_39442031_19022.cpp:24:31: error: reference to 'next' is ambiguous
24 | int j=next[i-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_39442031_19022.cpp:4:7: note: 'int next [1000010]'
4 | int T,next[1000010],s[1000010],t[1000010];
| ^~~~
0_0_39442031_19022.cpp:25:50: error: reference to 'next' is ambiguous
25 | while(j&&s[j+1]!=s[i]) 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_39442031_19022.cpp:4:7: note: 'int next [1000010]'
4 | int T,next[1000010],s[1000010],t[1000010];
| ^~~~
0_0_39442031_19022.cpp:26:25: error: reference to 'next' is ambiguous
26 | next[i]=j+(s[j+1]==s[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_39442031_19022.cpp:4:7: note: 'int next [1000010]'
4 | int T,next[1000010],s[1000010],t[1000010];
| ^~~~
0_0_39442031_19022.cpp:33:41: error: reference to 'next' is ambiguous
33 | matched=next[matched];
| ^~~~
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_39442031_19022.cpp:4:7: note: 'int next [1000010]'
4 | int T,next[1000010],s[1000010],t[1000010];
| ^~~~
|