0_0_38023079_31866.cpp: In function 'void build()':
0_0_38023079_31866.cpp:22:12: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:22:26: error: reference to 'next' is ambiguous
memset(next,0,sizeof(next));
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:24:5: error: reference to 'next' is ambiguous
next[0]=len;
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:27:12: error: reference to 'next' is ambiguous
if(next[i-a]+i-1<p ) // 很好啊,如果p比i小的话
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:29:13: error: reference to 'next' is ambiguous
next[i]=next[i-a];// 当小于上界的时候,就直接等于
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:29:21: error: reference to 'next' is ambiguous
next[i]=next[i-a];// 当小于上界的时候,就直接等于
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:41:13: error: reference to 'next' is ambiguous
next[i]=k+1; //这个是表示数量的
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp: In function 'void extend_kmp()':
0_0_38023079_31866.cpp:53:12: error: reference to 'next' is ambiguous
if(next[i-a]+i-1 < p) // 很好啊,如果p比i小的话
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:55:20: error: reference to 'next' is ambiguous
sum[i]=next[i-a];// 当小于上界的时候,就直接等于
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp: In function 'int main()':
0_0_38023079_31866.cpp:94:18: error: reference to 'next' is ambiguous
if(i+next[i]-1==len-1)
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:96:30: error: reference to 'next' is ambiguous
if( len%(len-next[i])==0 )
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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_38023079_31866.cpp:98:27: error: reference to 'next' is ambiguous
k=len-next[i];
^
0_0_38023079_31866.cpp:17:5: note: candidates are: int next [100100]
int next[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++/algorithm:61,
from 0_0_38023079_31866.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
^
|