0_0_22942409_10835\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_22942409_10835\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_22942409_10835\Main.java:2: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_22942409_10835\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_22942409_10835\Main.java:4: 错误: 非法字符: '#'
#include <queue>
^
0_0_22942409_10835\Main.java:6: 错误: 需要class, interface或enum
const int MAXN=6e5;
^
0_0_22942409_10835\Main.java:7: 错误: 需要class, interface或enum
struct ac_automanton
^
0_0_22942409_10835\Main.java:10: 错误: 需要class, interface或enum
int L;
^
0_0_22942409_10835\Main.java:11: 错误: 需要class, interface或enum
int root;
^
0_0_22942409_10835\Main.java:12: 错误: 需要class, interface或enum
int newnode()
^
0_0_22942409_10835\Main.java:14: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:14: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:16: 错误: 需要class, interface或enum
last[L++]=0;
^
0_0_22942409_10835\Main.java:17: 错误: 需要class, interface或enum
return L-1;
^
0_0_22942409_10835\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:22: 错误: 需要class, interface或enum
root=newnode();
^
0_0_22942409_10835\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:27: 错误: 需要class, interface或enum
int now=root;
^
0_0_22942409_10835\Main.java:28: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_22942409_10835\Main.java:28: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_22942409_10835\Main.java:28: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_22942409_10835\Main.java:31: 错误: 需要class, interface或enum
if(next[now][x]==-1)
^
0_0_22942409_10835\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:42: 错误: 需要class, interface或enum
int temp;
^
0_0_22942409_10835\Main.java:43: 错误: 需要class, interface或enum
fail[root]=root;
^
0_0_22942409_10835\Main.java:44: 错误: 需要class, interface或enum
queue<int> Q;
^
0_0_22942409_10835\Main.java:45: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:45: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:45: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:49: 错误: 需要class, interface或enum
else
^
0_0_22942409_10835\Main.java:52: 错误: 需要class, interface或enum
Q.push(next[now][i]);
^
0_0_22942409_10835\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:59: 错误: 需要class, interface或enum
Q.pop();
^
0_0_22942409_10835\Main.java:60: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:60: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:60: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)
^
0_0_22942409_10835\Main.java:64: 错误: 需要class, interface或enum
else
^
0_0_22942409_10835\Main.java:67: 错误: 需要class, interface或enum
Q.push(next[now][i]);
^
0_0_22942409_10835\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:75: 错误: 需要class, interface或enum
int now=root;
^
0_0_22942409_10835\Main.java:76: 错误: 需要class, interface或enum
int ans=0;
^
0_0_22942409_10835\Main.java:77: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_22942409_10835\Main.java:77: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_22942409_10835\Main.java:77: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_22942409_10835\Main.java:80: 错误: 需要class, interface或enum
now=next[now][x];
^
0_0_22942409_10835\Main.java:81: 错误: 需要class, interface或enum
int temp=now;
^
0_0_22942409_10835\Main.java:82: 错误: 需要class, interface或enum
while(temp!=root)
^
0_0_22942409_10835\Main.java:85: 错误: 需要class, interface或enum
last[temp]=0;
^
0_0_22942409_10835\Main.java:86: 错误: 需要class, interface或enum
temp=fail[temp];
^
0_0_22942409_10835\Main.java:87: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:90: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:92: 错误: 需要class, interface或enum
char pattern[MAXN];
^
0_0_22942409_10835\Main.java:93: 错误: 需要class, interface或enum
ac_automanton ac;
^
0_0_22942409_10835\Main.java:94: 错误: 需要class, interface或enum
int main()
^
0_0_22942409_10835\Main.java:97: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_22942409_10835\Main.java:98: 错误: 需要class, interface或enum
while(t--)
^
0_0_22942409_10835\Main.java:101: 错误: 需要class, interface或enum
scanf("%d",&n);
^
0_0_22942409_10835\Main.java:102: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_22942409_10835\Main.java:102: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_22942409_10835\Main.java:102: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_22942409_10835\Main.java:105: 错误: 需要class, interface或enum
ac.Insert(pattern);
^
0_0_22942409_10835\Main.java:106: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:108: 错误: 需要class, interface或enum
scanf("%s",pattern);
^
0_0_22942409_10835\Main.java:109: 错误: 需要class, interface或enum
int ans=ac.query(pattern);
^
0_0_22942409_10835\Main.java:110: 错误: 需要class, interface或enum
printf("%d\n",ans);
^
0_0_22942409_10835\Main.java:111: 错误: 需要class, interface或enum
}
^
0_0_22942409_10835\Main.java:113: 错误: 需要class, interface或enum
}
^
69 个错误
|