0_0_18304960_9282.cpp: In function 'void link(int, int)':
0_0_18304960_9282.cpp:23:15: error: reference to 'next' is ambiguous
list[++ap]=b,next[ap]=head[a],head[a]=ap;
^
0_0_18304960_9282.cpp:13:21: note: candidates are: int next [50010]
int head[N],list[M],next[M],ap=1;
^
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_18304960_9282.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_18304960_9282.cpp: In function 'void tarjan(int)':
0_0_18304960_9282.cpp:28:26: error: reference to 'next' is ambiguous
for(x=head[u];x&&flag;x=next[x]){
^
0_0_18304960_9282.cpp:13:21: note: candidates are: int next [50010]
int head[N],list[M],next[M],ap=1;
^
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_18304960_9282.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
^
|