0_0_17959489_9153.cpp: In function 'void ins(int, int)':
0_0_17959489_9153.cpp:17:35: error: reference to 'next' is ambiguous
void ins(int a,int b){to[++tot]=b;next[tot]=head[a];head[a]=tot;}
^
0_0_17959489_9153.cpp:16:25: note: candidates are: int next [2500]
int head[maxn],to[maxm],next[maxm],tot;
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17959489_9153.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_17959489_9153.cpp: In function 'LL get(int, int, int, int)':
0_0_17959489_9153.cpp:23:32: error: reference to 'next' is ambiguous
if(t==0)for(int p=head[x];p;p=next[p])dp[x][y][z][t]=(dp[x][y][z][t]+get(to[p],y,z,1))%mo;
^
0_0_17959489_9153.cpp:16:25: note: candidates are: int next [2500]
int head[maxn],to[maxm],next[maxm],tot;
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17959489_9153.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_17959489_9153.cpp:24:32: error: reference to 'next' is ambiguous
if(t==1)for(int p=head[y];p;p=next[p])dp[x][y][z][t]=(dp[x][y][z][t]+get(x,to[p],z,2))%mo;
^
0_0_17959489_9153.cpp:16:25: note: candidates are: int next [2500]
int head[maxn],to[maxm],next[maxm],tot;
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17959489_9153.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_17959489_9153.cpp:25:32: error: reference to 'next' is ambiguous
if(t==2)for(int p=head[z];p;p=next[p])dp[x][y][z][t]=(dp[x][y][z][t]+get(x,y,to[p],0))%mo;
^
0_0_17959489_9153.cpp:16:25: note: candidates are: int next [2500]
int head[maxn],to[maxm],next[maxm],tot;
^
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++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17959489_9153.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
^
|