0_0_13526085_9815.cpp: In function 'void tr()':
0_0_13526085_9815.cpp:19:2: error: reference to 'next' is ambiguous
next[0]=n;
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:21:2: error: reference to 'next' is ambiguous
next[1]=i-1;
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:24:7: error: reference to 'next' is ambiguous
r=p+next[p]-1;
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:25:7: error: reference to 'next' is ambiguous
len=next[i-p];
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:28:4: error: reference to 'next' is ambiguous
next[i]=j;
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:30:9: error: reference to 'next' is ambiguous
}else next[i]=len;
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:34:9: error: reference to 'next' is ambiguous
j=a[i+next[i]]-a[next[i]];
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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_13526085_9815.cpp:34:20: error: reference to 'next' is ambiguous
j=a[i+next[i]]-a[next[i]];
^
0_0_13526085_9815.cpp:6:18: note: candidates are: long int next [200005]
long n,a[200005],next[200005];
^
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_13526085_9815.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
^
|