0_0_26619072_8759.cpp: In function 'void init()':
0_0_26619072_8759.cpp:46:9: error: reference to 'next' is ambiguous
next[i]=i+1;
^
0_0_26619072_8759.cpp:17:18: note: candidates are: int next [100005]
int tp[N],n,c[N],next[N],pre[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_26619072_8759.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_26619072_8759.cpp:49:5: error: reference to 'next' is ambiguous
next[n]=1;
^
0_0_26619072_8759.cpp:17:18: note: candidates are: int next [100005]
int tp[N],n,c[N],next[N],pre[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_26619072_8759.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_26619072_8759.cpp: In function 'int main()':
0_0_26619072_8759.cpp:83:13: error: reference to 'next' is ambiguous
next[pre[tp[i]]]=next[tp[i]];
^
0_0_26619072_8759.cpp:17:18: note: candidates are: int next [100005]
int tp[N],n,c[N],next[N],pre[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_26619072_8759.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_26619072_8759.cpp:83:30: error: reference to 'next' is ambiguous
next[pre[tp[i]]]=next[tp[i]];
^
0_0_26619072_8759.cpp:17:18: note: candidates are: int next [100005]
int tp[N],n,c[N],next[N],pre[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_26619072_8759.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_26619072_8759.cpp:84:17: error: reference to 'next' is ambiguous
pre[next[tp[i]]]=pre[tp[i]];
^
0_0_26619072_8759.cpp:17:18: note: candidates are: int next [100005]
int tp[N],n,c[N],next[N],pre[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_26619072_8759.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_26619072_8759.cpp:86:19: error: reference to 'next' is ambiguous
tp[i]=next[tp[i]];//这里就用tp[i]保存第i个珠子被取走后手上拿的是几号珠子方便下次计算
^
0_0_26619072_8759.cpp:17:18: note: candidates are: int next [100005]
int tp[N],n,c[N],next[N],pre[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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_26619072_8759.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
^
|