0_0_14598138_3881.cpp:6:11: error: array bound is not an integer constant before ']' token
int s[SIZE], t[SIZE2];
^
0_0_14598138_3881.cpp:6:21: error: array bound is not an integer constant before ']' token
int s[SIZE], t[SIZE2];
^
0_0_14598138_3881.cpp:7:15: error: array bound is not an integer constant before ']' token
int next[SIZE2];
^
0_0_14598138_3881.cpp: In function 'void getnext()':
0_0_14598138_3881.cpp:10:5: error: 'next' was not declared in this scope
next[0] = -1;
^
0_0_14598138_3881.cpp:15:23: error: 't' was not declared in this scope
if(i == -1 || t[i] == t[j])
^
0_0_14598138_3881.cpp: In function 'int kmp()':
0_0_14598138_3881.cpp:28:23: error: 's' was not declared in this scope
if(j == -1 || s[i] == t[j])
^
0_0_14598138_3881.cpp:28:31: error: 't' was not declared in this scope
if(j == -1 || s[i] == t[j])
^
0_0_14598138_3881.cpp:31:17: error: 'next' was not declared in this scope
j = next[j];
^
0_0_14598138_3881.cpp: In function 'int main()':
0_0_14598138_3881.cpp:44:25: error: 's' was not declared in this scope
scanf("%d", s + i);
^
0_0_14598138_3881.cpp:46:25: error: 't' was not declared in this scope
scanf("%d", t + i);
^
|