0_0_13209747_35.cpp: In function 'int kmp()':
0_0_13209747_35.cpp:52:7: error: reference to 'next' is ambiguous
j=next[j];
^
0_0_13209747_35.cpp:15:26: note: candidates are: int next [1011]
int num[1010], ans[1010],next[1011];
^
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_13209747_35.cpp:2:
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_13209747_35.cpp:76:7: error: reference to 'next' is ambiguous
j=next[j];
^
0_0_13209747_35.cpp:15:26: note: candidates are: int next [1011]
int num[1010], ans[1010],next[1011];
^
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_13209747_35.cpp:2:
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_13209747_35.cpp: In function 'void nex()':
0_0_13209747_35.cpp:88:2: error: reference to 'next' is ambiguous
next[0]=-1;
^
0_0_13209747_35.cpp:15:26: note: candidates are: int next [1011]
int num[1010], ans[1010],next[1011];
^
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_13209747_35.cpp:2:
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_13209747_35.cpp:96:4: error: reference to 'next' is ambiguous
next[i]=j;
^
0_0_13209747_35.cpp:15:26: note: candidates are: int next [1011]
int num[1010], ans[1010],next[1011];
^
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_13209747_35.cpp:2:
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_13209747_35.cpp:100:6: error: reference to 'next' is ambiguous
j=next[j];
^
0_0_13209747_35.cpp:15:26: note: candidates are: int next [1011]
int num[1010], ans[1010],next[1011];
^
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_13209747_35.cpp:2:
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_13209747_35.cpp: At global scope:
0_0_13209747_35.cpp:137:11: error: redefinition of 'const int inF'
const int inF=0x3f3f3f3f;
^
0_0_13209747_35.cpp:12:11: note: 'const int inF' previously defined here
const int inF=0x3f3f3f3f;
^
0_0_13209747_35.cpp:139:5: error: redefinition of 'int n'
int n, m, t;
^
0_0_13209747_35.cpp:14:5: note: 'int n' previously declared here
int n, m, t;
^
0_0_13209747_35.cpp:139:8: error: redefinition of 'int m'
int n, m, t;
^
0_0_13209747_35.cpp:14:8: note: 'int m' previously declared here
int n, m, t;
^
0_0_13209747_35.cpp:139:11: error: redefinition of 'int t'
int n, m, t;
^
0_0_13209747_35.cpp:14:11: note: 'int t' previously declared here
int n, m, t;
^
0_0_13209747_35.cpp: In function 'int main()':
0_0_13209747_35.cpp:141:5: error: redefinition of 'int main()'
int main()
^
0_0_13209747_35.cpp:104:5: note: 'int main()' previously defined here
int main()
^
|