0_0_38425387_14557.c:8:20: error: expected identifier or '(' before '/' token
int next_table[M]; //next表
^
0_0_38425387_14557.c:8:20: error: stray '\261' in program
0_0_38425387_14557.c:8:20: error: stray '\355' in program
0_0_38425387_14557.c:14:1: error: expected identifier or '(' before '/' token
//构造next表
^
0_0_38425387_14557.c:14:1: error: stray '\271' in program
0_0_38425387_14557.c:14:1: error: stray '\271' in program
0_0_38425387_14557.c:14:1: error: stray '\324' in program
0_0_38425387_14557.c:14:1: error: stray '\354' in program
0_0_38425387_14557.c:14:1: error: stray '\261' in program
0_0_38425387_14557.c:14:1: error: stray '\355' in program
0_0_38425387_14557.c:17:5: error: stray '\326' in program
int j = 0;//主串指针
^
0_0_38425387_14557.c:17:5: error: stray '\367' in program
0_0_38425387_14557.c:17:5: error: stray '\264' in program
0_0_38425387_14557.c:17:5: error: stray '\256' in program
0_0_38425387_14557.c:17:5: error: stray '\326' in program
0_0_38425387_14557.c:17:5: error: stray '\270' in program
0_0_38425387_14557.c:17:5: error: stray '\325' in program
0_0_38425387_14557.c:17:5: error: stray '\353' in program
0_0_38425387_14557.c:18:5: error: stray '\304' in program
int t = -1;//模式串指针
^
0_0_38425387_14557.c:18:5: error: stray '\243' in program
0_0_38425387_14557.c:18:5: error: stray '\312' in program
0_0_38425387_14557.c:18:5: error: stray '\275' in program
0_0_38425387_14557.c:18:5: error: stray '\264' in program
0_0_38425387_14557.c:18:5: error: stray '\256' in program
0_0_38425387_14557.c:18:5: error: stray '\326' in program
0_0_38425387_14557.c:18:5: error: stray '\270' in program
0_0_38425387_14557.c:18:5: error: stray '\325' in program
0_0_38425387_14557.c:18:5: error: stray '\353' in program
0_0_38425387_14557.c: In function 'kmp':
0_0_38425387_14557.c:29:5: error: expected expression before '/' token
// str1 是主串
^
0_0_38425387_14557.c:29:5: error: stray '\312' in program
0_0_38425387_14557.c:29:5: error: stray '\307' in program
0_0_38425387_14557.c:29:5: error: stray '\326' in program
0_0_38425387_14557.c:29:5: error: stray '\367' in program
0_0_38425387_14557.c:29:5: error: stray '\264' in program
0_0_38425387_14557.c:29:5: error: stray '\256' in program
0_0_38425387_14557.c:30:5: error: stray '\312' in program
// str2 是模式串
^
0_0_38425387_14557.c:30:5: error: stray '\307' in program
0_0_38425387_14557.c:30:5: error: stray '\304' in program
0_0_38425387_14557.c:30:5: error: stray '\243' in program
0_0_38425387_14557.c:30:5: error: stray '\312' in program
0_0_38425387_14557.c:30:5: error: stray '\275' in program
0_0_38425387_14557.c:30:5: error: stray '\264' in program
0_0_38425387_14557.c:30:5: error: stray '\256' in program
0_0_38425387_14557.c:34:12: error: 'j' undeclared (first use in this function)
while( j < len_str2 && i < len_str1) {
^
0_0_38425387_14557.c:34:12: note: each undeclared identifier is reported only once for each function it appears in
0_0_38425387_14557.c:34:28: error: 'i' undeclared (first use in this function)
while( j < len_str2 && i < len_str1) {
^
0_0_38425387_14557.c: In function 'main':
0_0_38425387_14557.c:49:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i < cnt; i++){
^
0_0_38425387_14557.c:49:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_38425387_14557.c:51:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j = 0; j < n; j++){
^
0_0_38425387_14557.c:55:17: error: redefinition of 'j'
for(int j = 0; j < m; j++){
^
0_0_38425387_14557.c:51:17: note: previous definition of 'j' was here
for(int j = 0; j < n; j++){
^
0_0_38425387_14557.c:55:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j = 0; j < m; j++){
^
|