0_0_18253861_14316.cpp: In function 'void link(int, int, int)':
0_0_18253861_14316.cpp:18:15: error: reference to 'next' is ambiguous
list[++ap]=b,next[ap]=head[a],head[a]=ap,w[ap]=c;
^
0_0_18253861_14316.cpp:10:21: note: candidates are: int next [100010]
int head[N],list[M],next[M],w[M],ap,in[N],col[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_18253861_14316.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_18253861_14316.cpp: In function 'void tarjan(int)':
0_0_18253861_14316.cpp:22:20: error: reference to 'next' is ambiguous
for(x=head[u];x;x=next[x]){
^
0_0_18253861_14316.cpp:10:21: note: candidates are: int next [100010]
int head[N],list[M],next[M],w[M],ap,in[N],col[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_18253861_14316.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_18253861_14316.cpp: In function 'void work()':
0_0_18253861_14316.cpp:46:21: error: reference to 'next' is ambiguous
for(x=head[i];x;x=next[x])if(col[list[x]]!=col[i])
^
0_0_18253861_14316.cpp:10:21: note: candidates are: int next [100010]
int head[N],list[M],next[M],w[M],ap,in[N],col[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_18253861_14316.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
^
|