/in/foo.cc: In function 'void link(int, int)':
/in/foo.cc:13:17: error: reference to 'next' is ambiguous
to[++tot]=v,next[tot]=last[u],last[u]=tot;
^~~~
/in/foo.cc:9:17: note: candidates are: int next [200020]
int n,tot,to[M],next[M],last[N],f[N][2];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:5:40: error: reference to 'next' is ambiguous
#define efo(i,v) for(int i=last[v];i;i=next[i])
^
/in/foo.cc:33:5: note: in expansion of macro 'efo'
efo(i,v)
^~~
/in/foo.cc:9:17: note: candidates are: int next [200020]
int n,tot,to[M],next[M],last[N],f[N][2];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
/in/foo.cc:5:40: error: reference to 'next' is ambiguous
#define efo(i,v) for(int i=last[v];i;i=next[i])
^
/in/foo.cc:42:5: note: in expansion of macro 'efo'
efo(i,v)
^~~
/in/foo.cc:9:17: note: candidates are: int next [200020]
int n,tot,to[M],next[M],last[N],f[N][2];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~