0_0_38688432_30773.cpp: In function 'void add(int, int, int)':
0_0_38688432_30773.cpp:43:26: error: reference to 'next' is ambiguous
43 | to[edge]=v,w[edge]=c,next[edge]=head[u],head[u]=edge++;
| ^~~~
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_38688432_30773.cpp: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_38688432_30773.cpp:9:25: note: 'int next [2000005]'
9 | int head[maxn],to[maxm],next[maxm],w[maxm],edge;
| ^~~~
0_0_38688432_30773.cpp:44:26: error: reference to 'next' is ambiguous
44 | to[edge]=u,w[edge]=c,next[edge]=head[v],head[v]=edge++;
| ^~~~
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_38688432_30773.cpp:9:25: note: 'int next [2000005]'
9 | int head[maxn],to[maxm],next[maxm],w[maxm],edge;
| ^~~~
0_0_38688432_30773.cpp: In function 'void bfs(int)':
0_0_38688432_30773.cpp:59:34: error: reference to 'next' is ambiguous
59 | for(int i=head[u]; ~i; i=next[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_38688432_30773.cpp:9:25: note: 'int next [2000005]'
9 | int head[maxn],to[maxm],next[maxm],w[maxm],edge;
| ^~~~
|