0_0_39040475_24135.cpp: In function 'void f()':
0_0_39040475_24135.cpp:15:5: error: reference to 'next' is ambiguous
15 | next[0] = -1;
| ^~~~
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_39040475_24135.cpp:4:
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_39040475_24135.cpp:9:5: note: 'int next [200005]'
9 | int next[MAXN],sum[MAXN],n;
| ^~~~
0_0_39040475_24135.cpp:21:13: error: reference to 'next' is ambiguous
21 | next[i] = 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_39040475_24135.cpp:9:5: note: 'int next [200005]'
9 | int next[MAXN],sum[MAXN],n;
| ^~~~
0_0_39040475_24135.cpp:24:17: error: reference to 'next' is ambiguous
24 | 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_39040475_24135.cpp:9:5: note: 'int next [200005]'
9 | int next[MAXN],sum[MAXN],n;
| ^~~~
0_0_39040475_24135.cpp: In function 'int main()':
0_0_39040475_24135.cpp:41:17: error: reference to 'next' is ambiguous
41 | sum[next[i]] = (sum[next[i]]+1)%MOD;
| ^~~~
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_39040475_24135.cpp:9:5: note: 'int next [200005]'
9 | int next[MAXN],sum[MAXN],n;
| ^~~~
0_0_39040475_24135.cpp:41:33: error: reference to 'next' is ambiguous
41 | sum[next[i]] = (sum[next[i]]+1)%MOD;
| ^~~~
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_39040475_24135.cpp:9:5: note: 'int next [200005]'
9 | int next[MAXN],sum[MAXN],n;
| ^~~~
|