0_0_30553139_29555\Main.java:1: 错误: 非法字符: '#'
#pragma comment(linker, "/STACK:102400000,102400000”)
^
0_0_30553139_29555\Main.java:1: 错误: 需要class, interface或enum
#pragma comment(linker, "/STACK:102400000,102400000”)
^
0_0_30553139_29555\Main.java:1: 错误: 未结束的字符串文字
#pragma comment(linker, "/STACK:102400000,102400000”)
^
0_0_30553139_29555\Main.java:2: 错误: 非法字符: '#'
#include<iostream>
^
0_0_30553139_29555\Main.java:3: 错误: 非法字符: '#'
#include<vector>
^
0_0_30553139_29555\Main.java:4: 错误: 非法字符: '#'
#include<map>
^
0_0_30553139_29555\Main.java:5: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_30553139_29555\Main.java:6: 错误: 非法字符: '#'
#include<cstring>
^
0_0_30553139_29555\Main.java:7: 错误: 非法字符: '#'
#include<string>
^
0_0_30553139_29555\Main.java:8: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_30553139_29555\Main.java:9: 错误: 非法字符: '#'
#include<stack>
^
0_0_30553139_29555\Main.java:10: 错误: 非法字符: '#'
#include<queue>
^
0_0_30553139_29555\Main.java:11: 错误: 非法字符: '#'
#include<set>
^
0_0_30553139_29555\Main.java:12: 错误: 非法字符: '#'
#define bug(a) printf("no bug %d",a)
^
0_0_30553139_29555\Main.java:13: 错误: 非法字符: '#'
#define sci(x) scanf("%d",&x)
^
0_0_30553139_29555\Main.java:14: 错误: 非法字符: '#'
#define scl(x) scanf("%lld",&x)
^
0_0_30553139_29555\Main.java:15: 错误: 非法字符: '#'
#define REP(a,b,c) for(ll a=b;a<=c;a++)
^
0_0_30553139_29555\Main.java:15: 错误: 需要class, interface或enum
#define REP(a,b,c) for(ll a=b;a<=c;a++)
^
0_0_30553139_29555\Main.java:15: 错误: 需要class, interface或enum
#define REP(a,b,c) for(ll a=b;a<=c;a++)
^
0_0_30553139_29555\Main.java:16: 错误: 非法字符: '#'
#define PER(a,b,c) for(ll a=b;a>=c;a--)
^
0_0_30553139_29555\Main.java:16: 错误: 需要class, interface或enum
#define PER(a,b,c) for(ll a=b;a>=c;a--)
^
0_0_30553139_29555\Main.java:16: 错误: 需要class, interface或enum
#define PER(a,b,c) for(ll a=b;a>=c;a--)
^
0_0_30553139_29555\Main.java:17: 错误: 非法字符: '#'
#define ll long long
^
0_0_30553139_29555\Main.java:18: 错误: 非法字符: '#'
#define lb(a) (a&(-a))
^
0_0_30553139_29555\Main.java:20: 错误: 需要class, interface或enum
const ll MAXN=2e6+5;
^
0_0_30553139_29555\Main.java:21: 错误: 需要class, interface或enum
ll m,n,t;
^
0_0_30553139_29555\Main.java:22: 错误: 需要class, interface或enum
char s[MAXN];
^
0_0_30553139_29555\Main.java:23: 错误: 需要class, interface或enum
const int maxn=2e6,maxm=4;
^
0_0_30553139_29555\Main.java:24: 错误: 需要class, interface或enum
struct PT
^
0_0_30553139_29555\Main.java:27: 错误: 需要class, interface或enum
int head[MAXN],nxt[MAXN],to[MAXN];
^
0_0_30553139_29555\Main.java:28: 错误: 需要class, interface或enum
char ss[MAXN];
^
0_0_30553139_29555\Main.java:30: 错误: 需要class, interface或enum
int next[maxn+5][maxm+2];//next指针
^
0_0_30553139_29555\Main.java:31: 错误: 需要class, interface或enum
int num[maxn+5];//当前节点表示回文串中的后缀子回文串的数目
^
0_0_30553139_29555\Main.java:32: 错误: 需要class, interface或enum
int fail[maxn+5];//fail指针
^
0_0_30553139_29555\Main.java:33: 错误: 需要class, interface或enum
int len[maxn+5];//当前节点表示回文串的长度
^
0_0_30553139_29555\Main.java:34: 错误: 需要class, interface或enum
int s[maxn+5];//储存字符串
^
0_0_30553139_29555\Main.java:35: 错误: 需要class, interface或enum
int p;//节点个数
^
0_0_30553139_29555\Main.java:36: 错误: 需要class, interface或enum
int last[maxn+5];//最后一个节点
^
0_0_30553139_29555\Main.java:37: 错误: 需要class, interface或enum
int n;//字符串长度
^
0_0_30553139_29555\Main.java:38: 错误: 需要class, interface或enum
int m;
^
0_0_30553139_29555\Main.java:39: 错误: 需要class, interface或enum
void solve()
^
0_0_30553139_29555\Main.java:42: 错误: 需要class, interface或enum
cin>>m;
^
0_0_30553139_29555\Main.java:43: 错误: 需要class, interface或enum
REP(i,1,m)
^
0_0_30553139_29555\Main.java:46: 错误: 需要class, interface或enum
getchar();
^
0_0_30553139_29555\Main.java:47: 错误: 需要class, interface或enum
scanf("%c%d",&ss[i],&fa);
^
0_0_30553139_29555\Main.java:48: 错误: 需要class, interface或enum
nxt[i]=head[fa],head[fa]=i;
^
0_0_30553139_29555\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:51: 错误: 需要class, interface或enum
cout<<ans<<endl;
^
0_0_30553139_29555\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:55: 错误: 需要class, interface或enum
for(int i=head[x];i;i=nxt[i])
^
0_0_30553139_29555\Main.java:55: 错误: 需要class, interface或enum
for(int i=head[x];i;i=nxt[i])
^
0_0_30553139_29555\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:61: 错误: 需要class, interface或enum
for(int i=1;i<=maxm;i++)next[p][i]=0;
^
0_0_30553139_29555\Main.java:61: 错误: 需要class, interface或enum
for(int i=1;i<=maxm;i++)next[p][i]=0;
^
0_0_30553139_29555\Main.java:61: 错误: 需要class, interface或enum
for(int i=1;i<=maxm;i++)next[p][i]=0;
^
0_0_30553139_29555\Main.java:62: 错误: 需要class, interface或enum
num[p]=0;
^
0_0_30553139_29555\Main.java:63: 错误: 需要class, interface或enum
len[p]=x;
^
0_0_30553139_29555\Main.java:64: 错误: 需要class, interface或enum
return p;
^
0_0_30553139_29555\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:69: 错误: 需要class, interface或enum
ans=0;
^
0_0_30553139_29555\Main.java:70: 错误: 需要class, interface或enum
p=-1;
^
0_0_30553139_29555\Main.java:71: 错误: 需要class, interface或enum
n=0;
^
0_0_30553139_29555\Main.java:72: 错误: 需要class, interface或enum
last[0]=last[1]=0;
^
0_0_30553139_29555\Main.java:73: 错误: 需要class, interface或enum
new_node(0);
^
0_0_30553139_29555\Main.java:74: 错误: 需要class, interface或enum
new_node(-1);
^
0_0_30553139_29555\Main.java:75: 错误: 需要class, interface或enum
fail[0]=1;
^
0_0_30553139_29555\Main.java:76: 错误: 需要class, interface或enum
s[0]=-1;
^
0_0_30553139_29555\Main.java:77: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:82: 错误: 需要class, interface或enum
return x;
^
0_0_30553139_29555\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:87: 错误: 需要class, interface或enum
s[dep]=x;//添加新字符
^
0_0_30553139_29555\Main.java:88: 错误: 需要class, interface或enum
int tmp=get_fail(last[dep-1],dep);//得到匹配的(s[n]==s[n-len[tmp]-1)最长回文后缀的节点
^
0_0_30553139_29555\Main.java:89: 错误: 需要class, interface或enum
if(!next[tmp][x])//添加新字符后的回文串是否已经出现过
^
0_0_30553139_29555\Main.java:92: 错误: 需要class, interface或enum
fail[root]=next[get_fail(fail[tmp],dep)][x];//新节点的fail指针
^
0_0_30553139_29555\Main.java:93: 错误: 需要class, interface或enum
next[tmp][x]=root;
^
0_0_30553139_29555\Main.java:94: 错误: 需要class, interface或enum
num[root]=num[fail[root]]+len[root];//以这个节点为后缀有多少回文串
^
0_0_30553139_29555\Main.java:95: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:97: 错误: 需要class, interface或enum
}
^
0_0_30553139_29555\Main.java:100: 错误: 需要class, interface或enum
int main()
^
0_0_30553139_29555\Main.java:103: 错误: 需要class, interface或enum
while(t--)tree.solve();
^
0_0_30553139_29555\Main.java:104: 错误: 需要class, interface或enum
}
^
81 个错误
|