0_0_16458796_2625.cpp: In function 'void AddEdge(int, int)':
0_0_16458796_2625.cpp:21:15: error: reference to 'next' is ambiguous
to[++e]=v;next[e]=first[u];first[u]=e;in[v]++;
^
0_0_16458796_2625.cpp:19:23: note: candidates are: int next [200010]
int n,m,k,first[maxn],next[maxm],to[maxm],in[maxn],is[maxn],e;
^
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++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_16458796_2625.cpp:4:
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_16458796_2625.cpp: In function 'int main()':
0_0_16458796_2625.cpp:41:36: error: reference to 'next' is ambiguous
for(int i=first[x];i;i=next[i]) if(in[to[i]]) {
^
0_0_16458796_2625.cpp:19:23: note: candidates are: int next [200010]
int n,m,k,first[maxn],next[maxm],to[maxm],in[maxn],is[maxn],e;
^
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++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_16458796_2625.cpp:4:
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
^
|