0_0_23381157_13395\Main.java:1: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_23381157_13395\Main.java:1: 错误: 需要class, interface或enum
#include<cstdio>
^
0_0_23381157_13395\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_23381157_13395\Main.java:3: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_23381157_13395\Main.java:5: 错误: 需要class, interface或enum
const int N = 1005;
^
0_0_23381157_13395\Main.java:6: 错误: 需要class, interface或enum
char a[N],b[N];
^
0_0_23381157_13395\Main.java:7: 错误: 需要class, interface或enum
int Next[N];
^
0_0_23381157_13395\Main.java:8: 错误: 需要class, interface或enum
int kmp(char *a,char *b) {
^
0_0_23381157_13395\Main.java:10: 错误: 需要class, interface或enum
int len2 = strlen(b);
^
0_0_23381157_13395\Main.java:12: 错误: 需要class, interface或enum
int j = 0;
^
0_0_23381157_13395\Main.java:13: 错误: 需要class, interface或enum
int tm = Next[0] = -1;
^
0_0_23381157_13395\Main.java:14: 错误: 需要class, interface或enum
while(j<len2-1) {
^
0_0_23381157_13395\Main.java:17: 错误: 需要class, interface或enum
} else tm = Next[tm];
^
0_0_23381157_13395\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_23381157_13395\Main.java:25: 错误: 需要class, interface或enum
int ans = 0;
^
0_0_23381157_13395\Main.java:26: 错误: 需要class, interface或enum
for(i = j = 0; i < len1; ) {
^
0_0_23381157_13395\Main.java:26: 错误: 需要class, interface或enum
for(i = j = 0; i < len1; ) {
^
0_0_23381157_13395\Main.java:26: 错误: 需要class, interface或enum
for(i = j = 0; i < len1; ) {
^
0_0_23381157_13395\Main.java:29: 错误: 需要class, interface或enum
i--;
^
0_0_23381157_13395\Main.java:30: 错误: 需要class, interface或enum
j= -1;
^
0_0_23381157_13395\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_23381157_13395\Main.java:33: 错误: 需要class, interface或enum
else j = Next[j];
^
0_0_23381157_13395\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_23381157_13395\Main.java:36: 错误: 需要class, interface或enum
return ans;
^
0_0_23381157_13395\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_23381157_13395\Main.java:41: 错误: 需要class, interface或enum
int e =0;
^
0_0_23381157_13395\Main.java:42: 错误: 需要class, interface或enum
while(a[e]!='\0') {
^
0_0_23381157_13395\Main.java:45: 错误: 需要class, interface或enum
e++;
^
0_0_23381157_13395\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_23381157_13395\Main.java:48: 错误: 需要class, interface或enum
scanf("%s",b);
^
0_0_23381157_13395\Main.java:49: 错误: 需要class, interface或enum
int ans = kmp(a,b);
^
0_0_23381157_13395\Main.java:52: 错误: 需要class, interface或enum
printf("%d\n",ans);
^
0_0_23381157_13395\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_23381157_13395\Main.java:55: 错误: 需要class, interface或enum
}
^
34 个错误
|