0_0_26681330_30552.cpp: In function 'void init()':
0_0_26681330_30552.cpp:11:12: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp:11:26: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp: In function 'void insert(int)':
0_0_26681330_30552.cpp:20:13: error: reference to 'next' is ambiguous
if(!next[p][t])
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp:21:13: error: reference to 'next' is ambiguous
next[p][t]=++tot;
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp:22:11: error: reference to 'next' is ambiguous
p=next[p][t];
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp: In function 'int query(int)':
0_0_26681330_30552.cpp:33:20: error: reference to 'next' is ambiguous
ans+=v*sum[next[p][1-t]];
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp:34:12: error: reference to 'next' is ambiguous
if(next[p][t]==0)
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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_26681330_30552.cpp:36:10: error: reference to 'next' is ambiguous
p=next[p][t];
^
0_0_26681330_30552.cpp:7:5: note: candidates are: int next [1000009][2]
int next[1000009][2];
^
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_26681330_30552.cpp:3:
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
^
|