0_0_17448984_18559.cpp: In function 'void add(int, int)':
0_0_17448984_18559.cpp:10:2: error: reference to 'next' is ambiguous
next[++tot]=last[o]; last[o]=tot; to[tot]=p;
^
0_0_17448984_18559.cpp:6:27: note: candidates are: int next [410]
int i,j,k,l,s,n,m,last[N],next[2*N],to[2*N],tot,q[N],fa[N],ma[N],si[N],v[N],f[N][N],F[N][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_17448984_18559.cpp:2:
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_17448984_18559.cpp: In function 'void build(int)':
0_0_17448984_18559.cpp:19:26: error: reference to 'next' is ambiguous
for (int i=last[k];i;i=next[i]) {
^
0_0_17448984_18559.cpp:6:27: note: candidates are: int next [410]
int i,j,k,l,s,n,m,last[N],next[2*N],to[2*N],tot,q[N],fa[N],ma[N],si[N],v[N],f[N][N],F[N][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_17448984_18559.cpp:2:
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_17448984_18559.cpp: In function 'void work(int, int)':
0_0_17448984_18559.cpp:40:29: error: reference to 'next' is ambiguous
for (int j=last[q[i]];j;j=next[j]) {
^
0_0_17448984_18559.cpp:6:27: note: candidates are: int next [410]
int i,j,k,l,s,n,m,last[N],next[2*N],to[2*N],tot,q[N],fa[N],ma[N],si[N],v[N],f[N][N],F[N][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_17448984_18559.cpp:2:
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_17448984_18559.cpp:49:28: error: reference to 'next' is ambiguous
for (int i=last[q[1]];i;i=next[i]) {
^
0_0_17448984_18559.cpp:6:27: note: candidates are: int next [410]
int i,j,k,l,s,n,m,last[N],next[2*N],to[2*N],tot,q[N],fa[N],ma[N],si[N],v[N],f[N][N],F[N][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_17448984_18559.cpp:2:
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_17448984_18559.cpp: In function 'void work2()':
0_0_17448984_18559.cpp:65:25: error: reference to 'next' is ambiguous
for (int i=last[x];i;i=next[i]) if (to[i]==y) to[i]=n;
^
0_0_17448984_18559.cpp:6:27: note: candidates are: int next [410]
int i,j,k,l,s,n,m,last[N],next[2*N],to[2*N],tot,q[N],fa[N],ma[N],si[N],v[N],f[N][N],F[N][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_17448984_18559.cpp:2:
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_17448984_18559.cpp:66:25: error: reference to 'next' is ambiguous
for (int i=last[y];i;i=next[i]) if (to[i]==x) to[i]=n;
^
0_0_17448984_18559.cpp:6:27: note: candidates are: int next [410]
int i,j,k,l,s,n,m,last[N],next[2*N],to[2*N],tot,q[N],fa[N],ma[N],si[N],v[N],f[N][N],F[N][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_17448984_18559.cpp:2:
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
^
|