0_0_16676186_31278.cpp: In function 'void add(int, int, int)':
0_0_16676186_31278.cpp:26:12: error: reference to 'next' is ambiguous
e[++ee]=v;next[ee]=head[u];head[u]=ee;len[ee]=c;
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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_16676186_31278.cpp: In function 'void dfs(int, int)':
0_0_16676186_31278.cpp:43:5: error: reference to 'next' is ambiguous
j=next[j];
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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_16676186_31278.cpp: In function 'void spfa(int)':
0_0_16676186_31278.cpp:69:6: error: reference to 'next' is ambiguous
j=next[j];
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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_16676186_31278.cpp: In function 'int main()':
0_0_16676186_31278.cpp:83:17: error: reference to 'next' is ambiguous
mem(head);mem(next);
^
0_0_16676186_31278.cpp:22:23: note: in definition of macro 'mem'
#define mem(a) memset(a,0,sizeof(a))
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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_16676186_31278.cpp:83:17: error: reference to 'next' is ambiguous
mem(head);mem(next);
^
0_0_16676186_31278.cpp:22:34: note: in definition of macro 'mem'
#define mem(a) memset(a,0,sizeof(a))
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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_16676186_31278.cpp:107:17: error: reference to 'next' is ambiguous
mem(head);mem(next);
^
0_0_16676186_31278.cpp:22:23: note: in definition of macro 'mem'
#define mem(a) memset(a,0,sizeof(a))
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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_16676186_31278.cpp:107:17: error: reference to 'next' is ambiguous
mem(head);mem(next);
^
0_0_16676186_31278.cpp:22:34: note: in definition of macro 'mem'
#define mem(a) memset(a,0,sizeof(a))
^
0_0_16676186_31278.cpp:23:56: note: candidates are: int next [200005]
int m[N][N],a[1000000],len[M],dis[N],ee,i,j,_,flag,n,x,next[M],head[N],e[M],c[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_16676186_31278.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
^
|