0_0_14497919_24769.cpp: In function 'int main()':
0_0_14497919_24769.cpp:41:21: error: reference to 'next' is ambiguous
for(i = n-1,next[n] = n+1;i >= 1; --i)
^
0_0_14497919_24769.cpp:24:5: note: candidates are: int next [10010]
int next[10010];
^
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_14497919_24769.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_14497919_24769.cpp:44:17: error: reference to 'next' is ambiguous
next[i] = next[i+1];
^
0_0_14497919_24769.cpp:24:5: note: candidates are: int next [10010]
int next[10010];
^
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_14497919_24769.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_14497919_24769.cpp:44:27: error: reference to 'next' is ambiguous
next[i] = next[i+1];
^
0_0_14497919_24769.cpp:24:5: note: candidates are: int next [10010]
int next[10010];
^
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_14497919_24769.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_14497919_24769.cpp:46:17: error: reference to 'next' is ambiguous
next[i] = i+1;
^
0_0_14497919_24769.cpp:24:5: note: candidates are: int next [10010]
int next[10010];
^
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_14497919_24769.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_14497919_24769.cpp:68:50: error: reference to 'next' is ambiguous
for(g = num[i],j = i;j <= R; j = next[j])
^
0_0_14497919_24769.cpp:24:5: note: candidates are: int next [10010]
int next[10010];
^
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_14497919_24769.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_14497919_24769.cpp:72:39: error: reference to 'next' is ambiguous
ans += g*(min(R+1,next[j]) - j);
^
0_0_14497919_24769.cpp:24:5: note: candidates are: int next [10010]
int next[10010];
^
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_14497919_24769.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
^
|