0_0_13991608_22580.cpp: In function 'void add(int, int, int)':
0_0_13991608_22580.cpp:15:24: error: reference to 'next' is ambiguous
edge[++P]=z; to[P]=y; next[P]=s[x]; s[x]=P;
^
0_0_13991608_22580.cpp:11:14: note: candidates are: int next [80200]
int T,P,s[N],next[M],edge[M],to[M],dep[N],d[N][20],fa[N][20],n,m;
^
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_13991608_22580.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_13991608_22580.cpp:16:24: error: reference to 'next' is ambiguous
edge[++P]=z; to[P]=x; next[P]=s[y]; s[y]=P;
^
0_0_13991608_22580.cpp:11:14: note: candidates are: int next [80200]
int T,P,s[N],next[M],edge[M],to[M],dep[N],d[N][20],fa[N][20],n,m;
^
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_13991608_22580.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_13991608_22580.cpp: In function 'void Dfs(int, int)':
0_0_13991608_22580.cpp:20:21: error: reference to 'next' is ambiguous
for(int e=s[x];e;e=next[e])
^
0_0_13991608_22580.cpp:11:14: note: candidates are: int next [80200]
int T,P,s[N],next[M],edge[M],to[M],dep[N],d[N][20],fa[N][20],n,m;
^
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_13991608_22580.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
^
|