0_0_35546007_810.cpp: In function 'void makenext()':
0_0_35546007_810.cpp:7:21: error: 'strlen' was not declared in this scope
int M = strlen(s),i=0,j=-1;next[0]=-1;
^
0_0_35546007_810.cpp:7:32: error: reference to 'next' is ambiguous
int M = strlen(s),i=0,j=-1;next[0]=-1;
^
0_0_35546007_810.cpp:4:5: note: candidates are: int next [111111]
int next[MAXN],Min;
^
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++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_35546007_810.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_35546007_810.cpp:8:11: error: 'i' was not declared in this scope
while(i<=M){
^
0_0_35546007_810.cpp:9:20: error: 'j' was not declared in this scope
if(s[i]==s[j]||j==-1)next[++i]=++j;
^
0_0_35546007_810.cpp:9:30: error: reference to 'next' is ambiguous
if(s[i]==s[j]||j==-1)next[++i]=++j;
^
0_0_35546007_810.cpp:4:5: note: candidates are: int next [111111]
int next[MAXN],Min;
^
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++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_35546007_810.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_35546007_810.cpp:10:18: error: reference to 'next' is ambiguous
else j = next[j];
^
0_0_35546007_810.cpp:4:5: note: candidates are: int next [111111]
int next[MAXN],Min;
^
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++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_35546007_810.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_35546007_810.cpp: In function 'void solve()':
0_0_35546007_810.cpp:14:21: error: 'strlen' was not declared in this scope
int i = strlen(s);
^
0_0_35546007_810.cpp:15:9: error: reference to 'next' is ambiguous
i = next[i];
^
0_0_35546007_810.cpp:4:5: note: candidates are: int next [111111]
int next[MAXN],Min;
^
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++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_35546007_810.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_35546007_810.cpp:17:13: error: reference to 'next' is ambiguous
i = next[i];
^
0_0_35546007_810.cpp:4:5: note: candidates are: int next [111111]
int next[MAXN],Min;
^
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++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_35546007_810.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_35546007_810.cpp: In function 'int main()':
0_0_35546007_810.cpp:27:27: error: 'strlen' was not declared in this scope
Min = min(strlen(s),strlen(t));
^
0_0_35546007_810.cpp:28:19: error: 'strcat' was not declared in this scope
strcat(s,t);
^
|