0_0_39136772_9789.cpp: In function 'void getnext(int)':
0_0_39136772_9789.cpp:10:5: error: reference to 'next' is ambiguous
10 | next[0] = -1;
| ^~~~
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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
0_0_39136772_9789.cpp:17:13: error: reference to 'next' is ambiguous
17 | 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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
0_0_39136772_9789.cpp:20:17: error: reference to 'next' is ambiguous
20 | 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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
0_0_39136772_9789.cpp: In function 'int main()':
0_0_39136772_9789.cpp:32:16: error: reference to 'next' is ambiguous
32 | memset(next,0,sizeof(next));
| ^~~~
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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
0_0_39136772_9789.cpp:32:30: error: reference to 'next' is ambiguous
32 | memset(next,0,sizeof(next));
| ^~~~
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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
0_0_39136772_9789.cpp:36:21: error: reference to 'next' is ambiguous
36 | ans = len - next[len];
| ^~~~
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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
0_0_39136772_9789.cpp:40:21: error: reference to 'next' is ambiguous
40 | cout << ans-next[len]%ans << endl;
| ^~~~
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_39136772_9789.cpp:5:5: note: 'int next [100005]'
5 | int next[100005];
| ^~~~
|