0_0_33187310_13333\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_33187310_13333\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_33187310_13333\Main.java:3: 错误: 需要class, interface或enum
typedef long long LL;
^
0_0_33187310_13333\Main.java:4: 错误: 需要class, interface或enum
typedef unsigned long long ULL;
^
0_0_33187310_13333\Main.java:5: 错误: 需要class, interface或enum
int Gcd(int a,int b){if (b == 0) return a; return Gcd(b , a%b);}
^
0_0_33187310_13333\Main.java:5: 错误: 需要class, interface或enum
int Gcd(int a,int b){if (b == 0) return a; return Gcd(b , a%b);}
^
0_0_33187310_13333\Main.java:5: 错误: 需要class, interface或enum
int Gcd(int a,int b){if (b == 0) return a; return Gcd(b , a%b);}
^
0_0_33187310_13333\Main.java:6: 错误: 需要class, interface或enum
int Lcm(int a, int b){ return a/Gcd(a,b)*b;}
^
0_0_33187310_13333\Main.java:8: 错误: 需要class, interface或enum
long long f = 1, x = 0;char ch = getchar();
^
0_0_33187310_13333\Main.java:9: 错误: 需要class, interface或enum
while (ch > '9' || ch < '0'){if (ch == '-')f = -f;ch = getchar();}
^
0_0_33187310_13333\Main.java:9: 错误: 需要class, interface或enum
while (ch > '9' || ch < '0'){if (ch == '-')f = -f;ch = getchar();}
^
0_0_33187310_13333\Main.java:9: 错误: 需要class, interface或enum
while (ch > '9' || ch < '0'){if (ch == '-')f = -f;ch = getchar();}
^
0_0_33187310_13333\Main.java:10: 错误: 需要class, interface或enum
while (ch >= '0' && ch <= '9'){x = x * 10 + ch - '0';ch = getchar();}
^
0_0_33187310_13333\Main.java:10: 错误: 需要class, interface或enum
while (ch >= '0' && ch <= '9'){x = x * 10 + ch - '0';ch = getchar();}
^
0_0_33187310_13333\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:14: 错误: 需要class, interface或enum
char s[maxn];
^
0_0_33187310_13333\Main.java:15: 错误: 需要class, interface或enum
int n,ans[maxn];
^
0_0_33187310_13333\Main.java:16: 错误: 需要class, interface或enum
namespace Hash{
^
0_0_33187310_13333\Main.java:18: 错误: 需要class, interface或enum
const static ULL base = 31;
^
0_0_33187310_13333\Main.java:19: 错误: 需要class, interface或enum
void init_hash(){
^
0_0_33187310_13333\Main.java:21: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_33187310_13333\Main.java:21: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_33187310_13333\Main.java:21: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_33187310_13333\Main.java:23: 错误: 需要class, interface或enum
fac[i] = fac[i-1] * base;
^
0_0_33187310_13333\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:25: 错误: 需要class, interface或enum
for(int i=n; i>=1; i--){
^
0_0_33187310_13333\Main.java:25: 错误: 需要class, interface或enum
for(int i=n; i>=1; i--){
^
0_0_33187310_13333\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:31: 错误: 需要class, interface或enum
if (c == 1) return h1[r] - h1[l-1] * fac[r-l+1];
^
0_0_33187310_13333\Main.java:32: 错误: 需要class, interface或enum
else return h2[l] - h2[r+1] * fac[r-l+1];
^
0_0_33187310_13333\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:36: 错误: 需要class, interface或enum
else return false;
^
0_0_33187310_13333\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:40: 错误: 需要class, interface或enum
int l2 = r1,r2 = r;
^
0_0_33187310_13333\Main.java:41: 错误: 需要class, interface或enum
if ((r - l + 1) % 2 == 0) r1++;
^
0_0_33187310_13333\Main.java:42: 错误: 需要class, interface或enum
if (same(l1,r1,l2,r2)) return true;
^
0_0_33187310_13333\Main.java:43: 错误: 需要class, interface或enum
else return false;
^
0_0_33187310_13333\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:46: 错误: 需要class, interface或enum
struct Palindrome_Aho{
^
0_0_33187310_13333\Main.java:48: 错误: 需要class, interface或enum
int fail[maxn],s[maxn];
^
0_0_33187310_13333\Main.java:49: 错误: 需要class, interface或enum
int ed[maxn];
^
0_0_33187310_13333\Main.java:50: 错误: 需要class, interface或enum
int n,totNode,last,cur;
^
0_0_33187310_13333\Main.java:51: 错误: 需要class, interface或enum
int cnt[maxn];
^
0_0_33187310_13333\Main.java:52: 错误: 需要class, interface或enum
int newnode(int p){
^
0_0_33187310_13333\Main.java:53: 错误: 需要class, interface或enum
for(int i=0; i<26; i++) nex[totNode][i] = 0;
^
0_0_33187310_13333\Main.java:53: 错误: 需要class, interface或enum
for(int i=0; i<26; i++) nex[totNode][i] = 0;
^
0_0_33187310_13333\Main.java:54: 错误: 需要class, interface或enum
cnt[totNode] = 0; len[totNode] = p;
^
0_0_33187310_13333\Main.java:54: 错误: 需要class, interface或enum
cnt[totNode] = 0; len[totNode] = p;
^
0_0_33187310_13333\Main.java:55: 错误: 需要class, interface或enum
return totNode++;
^
0_0_33187310_13333\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:59: 错误: 需要class, interface或enum
newnode(0); newnode(-1);
^
0_0_33187310_13333\Main.java:59: 错误: 需要class, interface或enum
newnode(0); newnode(-1);
^
0_0_33187310_13333\Main.java:60: 错误: 需要class, interface或enum
s[0] = -1;
^
0_0_33187310_13333\Main.java:61: 错误: 需要class, interface或enum
cnt[1] = 1;
^
0_0_33187310_13333\Main.java:62: 错误: 需要class, interface或enum
fail[0] = 1;
^
0_0_33187310_13333\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:66: 错误: 需要class, interface或enum
return x;
^
0_0_33187310_13333\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:70: 错误: 需要class, interface或enum
cur = Fail(last);
^
0_0_33187310_13333\Main.java:71: 错误: 需要class, interface或enum
if (!nex[cur][ch]){
^
0_0_33187310_13333\Main.java:73: 错误: 需要class, interface或enum
fail[now] = nex[Fail(fail[cur])][ch];
^
0_0_33187310_13333\Main.java:74: 错误: 需要class, interface或enum
nex[cur][ch] = now;
^
0_0_33187310_13333\Main.java:75: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:77: 错误: 需要class, interface或enum
cnt[last]++;
^
0_0_33187310_13333\Main.java:78: 错误: 需要class, interface或enum
ed[last] = n;
^
0_0_33187310_13333\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:81: 错误: 需要class, interface或enum
for(int i=totNode-1; i>=0; i--){
^
0_0_33187310_13333\Main.java:81: 错误: 需要class, interface或enum
for(int i=totNode-1; i>=0; i--){
^
0_0_33187310_13333\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:84: 错误: 需要class, interface或enum
for(int i=2; i<totNode; i++){
^
0_0_33187310_13333\Main.java:84: 错误: 需要class, interface或enum
for(int i=2; i<totNode; i++){
^
0_0_33187310_13333\Main.java:86: 错误: 需要class, interface或enum
int r = (ed[i] + l) >> 1;
^
0_0_33187310_13333\Main.java:87: 错误: 需要class, interface或enum
if (Hash::check(l,r)){
^
0_0_33187310_13333\Main.java:89: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:93: 错误: 需要class, interface或enum
namespace solve{
^
0_0_33187310_13333\Main.java:96: 错误: 需要class, interface或enum
n = strlen(s + 1);
^
0_0_33187310_13333\Main.java:97: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:100: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_33187310_13333\Main.java:100: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_33187310_13333\Main.java:100: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_33187310_13333\Main.java:102: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:104: 错误: 需要class, interface或enum
}
^
0_0_33187310_13333\Main.java:107: 错误: 需要class, interface或enum
for(int i=1; i<=n; i++){
^
0_0_331
|