0_0_34144158_7715.cpp: In function 'void get_next(int)':
0_0_34144158_7715.cpp:16:9: error: reference to 'next' is ambiguous
memset(next,0,sizeof next);
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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_34144158_7715.cpp:16:23: error: reference to 'next' is ambiguous
memset(next,0,sizeof next);
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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_34144158_7715.cpp:17:2: error: reference to 'next' is ambiguous
next[1]=next[0]=-1;
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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_34144158_7715.cpp:17:10: error: reference to 'next' is ambiguous
next[1]=next[0]=-1;
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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_34144158_7715.cpp:21:32: error: reference to 'next' is ambiguous
while(j&&num[i]!=num[j+1]) j=next[j];
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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_34144158_7715.cpp:25:3: error: reference to 'next' is ambiguous
next[i]=j;
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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_34144158_7715.cpp: In function 'int main()':
0_0_34144158_7715.cpp:45:29: error: reference to 'next' is ambiguous
ans=max((LL)a*i-(LL)b*(i-next[i]),ans);
^
0_0_34144158_7715.cpp:12: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_34144158_7715.cpp:3:
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
^
|