0_0_21789932_20222.cpp: In function 'void add(int, int, int, int)':
0_0_21789932_20222.cpp:12:30: error: reference to 'next' is ambiguous
edgenum++;vet[edgenum]=v;next[edgenum]=head[u];head[u]=edgenum;pri[edgenum]=w;cost[edgenum]=c;
^
0_0_21789932_20222.cpp:7:20: note: candidates are: int next [10000]
int edgenum,vet[N],next[N],n,m,S,T,q[250000],head[N],pri[N],cost[N];
^
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++/algorithm:61,
from 0_0_21789932_20222.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_21789932_20222.cpp:13:30: error: reference to 'next' is ambiguous
edgenum++;vet[edgenum]=u;next[edgenum]=head[v];head[v]=edgenum;pri[edgenum]=0;cost[edgenum]=-c;
^
0_0_21789932_20222.cpp:7:20: note: candidates are: int next [10000]
int edgenum,vet[N],next[N],n,m,S,T,q[250000],head[N],pri[N],cost[N];
^
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++/algorithm:61,
from 0_0_21789932_20222.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_21789932_20222.cpp: In function 'bool spfa()':
0_0_21789932_20222.cpp:41:15: error: reference to 'next' is ambiguous
e=next[e];
^
0_0_21789932_20222.cpp:7:20: note: candidates are: int next [10000]
int edgenum,vet[N],next[N],n,m,S,T,q[250000],head[N],pri[N],cost[N];
^
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++/algorithm:61,
from 0_0_21789932_20222.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_21789932_20222.cpp: In function 'int dfs(int, int)':
0_0_21789932_20222.cpp:64:11: error: reference to 'next' is ambiguous
e=next[e];
^
0_0_21789932_20222.cpp:7:20: note: candidates are: int next [10000]
int edgenum,vet[N],next[N],n,m,S,T,q[250000],head[N],pri[N],cost[N];
^
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++/algorithm:61,
from 0_0_21789932_20222.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
^
|