0_0_16300444_10823.cpp: In function 'void init()':
0_0_16300444_10823.cpp:19:38: error: reference to 'next' is ambiguous
u[2*i-1]=x; v[2*i-1]=y; w[2*i-1]=z;next[2*i-1]=h[x]; h[x]=2*i-1;
^
0_0_16300444_10823.cpp:12:29: note: candidates are: int next [300100]
int u[maxm],v[maxm],w[maxm],next[maxm]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_16300444_10823.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_16300444_10823.cpp:20:38: error: reference to 'next' is ambiguous
u[2*i]=y; v[2*i]=x; w[2*i]=z; next[2*i]=h[y]; h[y]=2*i;
^
0_0_16300444_10823.cpp:12:29: note: candidates are: int next [300100]
int u[maxm],v[maxm],w[maxm],next[maxm]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_16300444_10823.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_16300444_10823.cpp: In function 'void spfa(int)':
0_0_16300444_10823.cpp:43:6: error: reference to 'next' is ambiguous
p=next[p];
^
0_0_16300444_10823.cpp:12:29: note: candidates are: int next [300100]
int u[maxm],v[maxm],w[maxm],next[maxm]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_16300444_10823.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
|