0_0_20989564_4241.cpp: In function 'void tarjan(int)':
0_0_20989564_4241.cpp:16:23: error: reference to 'next' is ambiguous
for(int i=fir[u];i;i=next[i])
^
0_0_20989564_4241.cpp:6:35: note: candidates are: int next [30005]
int t,n,m,x,y,fir[5005],to[30005],next[30005],cnt;
^
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++/vector:60,
from 0_0_20989564_4241.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_20989564_4241.cpp: In function 'void add(int, int)':
0_0_20989564_4241.cpp:37:14: error: reference to 'next' is ambiguous
to[++cnt]=b;next[cnt]=fir[a];fir[a]=cnt;
^
0_0_20989564_4241.cpp:6:35: note: candidates are: int next [30005]
int t,n,m,x,y,fir[5005],to[30005],next[30005],cnt;
^
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++/vector:60,
from 0_0_20989564_4241.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_20989564_4241.cpp: In function 'int dfs(int)':
0_0_20989564_4241.cpp:43:23: error: reference to 'next' is ambiguous
for(int i=fir[u];i;i=next[i])
^
0_0_20989564_4241.cpp:6:35: note: candidates are: int next [30005]
int t,n,m,x,y,fir[5005],to[30005],next[30005],cnt;
^
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++/vector:60,
from 0_0_20989564_4241.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_20989564_4241.cpp: In function 'int main()':
0_0_20989564_4241.cpp:55:10: error: reference to 'next' is ambiguous
memset(next,0,sizeof next);
^
0_0_20989564_4241.cpp:6:35: note: candidates are: int next [30005]
int t,n,m,x,y,fir[5005],to[30005],next[30005],cnt;
^
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++/vector:60,
from 0_0_20989564_4241.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_20989564_4241.cpp:55:24: error: reference to 'next' is ambiguous
memset(next,0,sizeof next);
^
0_0_20989564_4241.cpp:6:35: note: candidates are: int next [30005]
int t,n,m,x,y,fir[5005],to[30005],next[30005],cnt;
^
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++/vector:60,
from 0_0_20989564_4241.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
^
|