0_0_20601087_24544.cpp: In function 'void getnext()':
0_0_20601087_24544.cpp:14:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[0] = -1;
^
0_0_20601087_24544.cpp:15:13: error: 'm' was not declared in this scope
while(i<m)
^
0_0_20601087_24544.cpp: In function 'int kmp()':
0_0_20601087_24544.cpp:34:13: error: 'n' was not declared in this scope
while(i<n)
^
0_0_20601087_24544.cpp:38:21: error: 'm' was not declared in this scope
if(j == m-1)
^
0_0_20601087_24544.cpp: In function 'int main()':
0_0_20601087_24544.cpp:68:21: error: too many arguments to function 'void getnext()'
getnext(len2);
^
0_0_20601087_24544.cpp:11:6: note: declared here
void getnext()
^
0_0_20601087_24544.cpp:69:30: error: too many arguments to function 'int kmp()'
int ans=kmp(len1,len2);
^
0_0_20601087_24544.cpp:31:5: note: declared here
int kmp()
^
|