0_0_38998441_13370.cpp: In function 'void origin()':
0_0_38998441_13370.cpp:23:38: error: reference to 'next' is ambiguous
23 | for (int i=1;i<=n;i++) tail[i]=i,next[i]=0;
| ^~~~
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_38998441_13370.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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp: In function 'void link(int, int, int)':
0_0_38998441_13370.cpp:37:14: error: reference to 'next' is ambiguous
37 | ++ss,next[tail[x]]=ss,tail[x]=ss,sora[ss]=y,cost[ss]=z,next[ss]=0;
| ^~~~
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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:37:64: error: reference to 'next' is ambiguous
37 | ++ss,next[tail[x]]=ss,tail[x]=ss,sora[ss]=y,cost[ss]=z,next[ss]=0;
| ^~~~
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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:38:14: error: reference to 'next' is ambiguous
38 | ++ss,next[tail[y]]=ss,tail[y]=ss,sora[ss]=x,cost[ss]=z,next[ss]=0;
| ^~~~
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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:38:64: error: reference to 'next' is ambiguous
38 | ++ss,next[tail[y]]=ss,tail[y]=ss,sora[ss]=x,cost[ss]=z,next[ss]=0;
| ^~~~
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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp: In function 'void dij(int, int&)':
0_0_38998441_13370.cpp:56:25: error: reference to 'next' is ambiguous
56 | for (int i=x,ne;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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:57:15: error: reference to 'next' is ambiguous
57 | i=next[i],ne=sora[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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp: In function 'void spfa(int, int)':
0_0_38998441_13370.cpp:74:25: error: reference to 'next' is ambiguous
74 | for (int i=x,ne;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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:75:15: error: reference to 'next' is ambiguous
75 | i=next[i],ne=sora[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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp: In function 'void dfs(int, int)':
0_0_38998441_13370.cpp:85:25: error: reference to 'next' is ambiguous
85 | for (int i=x,ne;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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:86:19: error: reference to 'next' is ambiguous
86 | i=next[i],ne=sora[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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp: In function 'void add_o_d(int, int)':
0_0_38998441_13370.cpp:107:25: error: reference to 'next' is ambiguous
107 | for (int i=x,ne;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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp:108:7: error: reference to 'next' is ambiguous
108 | i=next[i],ne=sora[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_38998441_13370.cpp:13:5: note: 'int next [2000000]'
13 | int next[2000000],sora[2000000],cost[2000000],st[500000],u[500000],tail[500000],b[2000000];
| ^~~~
0_0_38998441_13370.cpp: In function 'void add_u_d(int, int)':
0_0_38998441_13370.cpp:119:25
|