0_0_39181491_21608.cpp: In function 'void getnext()':
0_0_39181491_21608.cpp:13:16: error: reference to 'next' is ambiguous
13 | memset(next,0,sizeof(next));
| ^~~~
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_39181491_21608.cpp:3:
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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp:13:30: error: reference to 'next' is ambiguous
13 | 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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp:14:9: error: reference to 'next' is ambiguous
14 | next[0]=-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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp:22:25: error: reference to 'next' is ambiguous
22 | 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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp:26:27: error: reference to 'next' is ambiguous
26 | 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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp: In function 'int main()':
0_0_39181491_21608.cpp:44:25: error: reference to 'next' is ambiguous
44 | int ans=next[len1];
| ^~~~
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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp:47:29: error: reference to 'next' is ambiguous
47 | ans=next[ans];
| ^~~~
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_39181491_21608.cpp:9:5: note: 'int next [100010]'
9 | int next[N];
| ^~~~
0_0_39181491_21608.cpp:63:10: error: expected '}' at end of input
63 | }
| ^
0_0_39181491_21608.cpp:31:1: note: to match this '{'
31 | {
| ^
|