0_0_34142107_21330.cpp: In function 'void get_next(int)':
0_0_34142107_21330.cpp:17:9: error: reference to 'next' is ambiguous
memset(next,0,sizeof next);
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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_34142107_21330.cpp:17:23: error: reference to 'next' is ambiguous
memset(next,0,sizeof next);
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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_34142107_21330.cpp:18:2: error: reference to 'next' is ambiguous
next[1]=next[0]=-1;
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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_34142107_21330.cpp:18:10: error: reference to 'next' is ambiguous
next[1]=next[0]=-1;
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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_34142107_21330.cpp:22:32: error: reference to 'next' is ambiguous
while(j&&num[i]!=num[j+1]) j=next[j];
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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_34142107_21330.cpp:26:3: error: reference to 'next' is ambiguous
next[i]=j;
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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_34142107_21330.cpp: In function 'int main()':
0_0_34142107_21330.cpp:45:29: error: reference to 'next' is ambiguous
ans=max((LL)a*i-(LL)b*(i-next[i]),ans);
^
0_0_34142107_21330.cpp:13:4: note: candidates are: long long int next [10000005]
LL next[MAX];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_34142107_21330.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
^
|