0_0_14521323_30259.cpp: In function 'int spfa()':
0_0_14521323_30259.cpp:21:6: error: reference to 'next' is ambiguous
i=next[i];
^
0_0_14521323_30259.cpp:3:110: note: candidates are: int next [200010]
int T,i,j,k,m,mm,n,ma,t[310],l[310],at[310],r[310][5],u[310],vv[310],a[200010],b[200010],c[200010],w[100010],next[200010],head[1010],now[1010],s,tt,dis[1010],fa[1010],ans,q[200010],v[1010],inf;
^
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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_14521323_30259.cpp:1:
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_14521323_30259.cpp: In function 'int main()':
0_0_14521323_30259.cpp:102:10: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_14521323_30259.cpp:3:110: note: candidates are: int next [200010]
int T,i,j,k,m,mm,n,ma,t[310],l[310],at[310],r[310][5],u[310],vv[310],a[200010],b[200010],c[200010],w[100010],next[200010],head[1010],now[1010],s,tt,dis[1010],fa[1010],ans,q[200010],v[1010],inf;
^
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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_14521323_30259.cpp:1:
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_14521323_30259.cpp:102:24: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_14521323_30259.cpp:3:110: note: candidates are: int next [200010]
int T,i,j,k,m,mm,n,ma,t[310],l[310],at[310],r[310][5],u[310],vv[310],a[200010],b[200010],c[200010],w[100010],next[200010],head[1010],now[1010],s,tt,dis[1010],fa[1010],ans,q[200010],v[1010],inf;
^
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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_14521323_30259.cpp:1:
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_14521323_30259.cpp:106:19: error: reference to 'next' is ambiguous
if (head[a[i]])next[now[a[i]]]=i;
^
0_0_14521323_30259.cpp:3:110: note: candidates are: int next [200010]
int T,i,j,k,m,mm,n,ma,t[310],l[310],at[310],r[310][5],u[310],vv[310],a[200010],b[200010],c[200010],w[100010],next[200010],head[1010],now[1010],s,tt,dis[1010],fa[1010],ans,q[200010],v[1010],inf;
^
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++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_14521323_30259.cpp:1:
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
^
|