0_0_25720799_21982\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_25720799_21982\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_25720799_21982\Main.java:4: 错误: 需要class, interface或enum
const int MAXN = 1e5+5;
^
0_0_25720799_21982\Main.java:5: 错误: 需要class, interface或enum
const int INF=0x3f3f3f3f;
^
0_0_25720799_21982\Main.java:6: 错误: 需要class, interface或enum
int t1[MAXN], t2[MAXN], c[MAXN]; //求SA数组需要的中间变量,不需要赋值
^
0_0_25720799_21982\Main.java:10: 错误: 需要class, interface或enum
bool cmp(int *r, int a, int b, int l)
^
0_0_25720799_21982\Main.java:13: 错误: 需要class, interface或enum
}
^
0_0_25720799_21982\Main.java:17: 错误: 需要class, interface或enum
int i, j, p, *x = t1, *y = t2;
^
0_0_25720799_21982\Main.java:19: 错误: 需要class, interface或enum
for (i = 0; i < m; i++)
^
0_0_25720799_21982\Main.java:19: 错误: 需要class, interface或enum
for (i = 0; i < m; i++)
^
0_0_25720799_21982\Main.java:19: 错误: 需要class, interface或enum
for (i = 0; i < m; i++)
^
0_0_25720799_21982\Main.java:21: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:21: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:21: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:23: 错误: 需要class, interface或enum
for (i = 1; i < m; i++)
^
0_0_25720799_21982\Main.java:23: 错误: 需要class, interface或enum
for (i = 1; i < m; i++)
^
0_0_25720799_21982\Main.java:23: 错误: 需要class, interface或enum
for (i = 1; i < m; i++)
^
0_0_25720799_21982\Main.java:25: 错误: 需要class, interface或enum
for (i = n - 1; i >= 0; i--)
^
0_0_25720799_21982\Main.java:25: 错误: 需要class, interface或enum
for (i = n - 1; i >= 0; i--)
^
0_0_25720799_21982\Main.java:25: 错误: 需要class, interface或enum
for (i = n - 1; i >= 0; i--)
^
0_0_25720799_21982\Main.java:27: 错误: 需要class, interface或enum
for (j = 1; j <= n; j <<= 1)
^
0_0_25720799_21982\Main.java:27: 错误: 需要class, interface或enum
for (j = 1; j <= n; j <<= 1)
^
0_0_25720799_21982\Main.java:27: 错误: 需要class, interface或enum
for (j = 1; j <= n; j <<= 1)
^
0_0_25720799_21982\Main.java:31: 错误: 需要class, interface或enum
for (i = n - j; i < n; i++)
^
0_0_25720799_21982\Main.java:31: 错误: 需要class, interface或enum
for (i = n - j; i < n; i++)
^
0_0_25720799_21982\Main.java:31: 错误: 需要class, interface或enum
for (i = n - j; i < n; i++)
^
0_0_25720799_21982\Main.java:33: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:33: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:33: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:38: 错误: 需要class, interface或enum
for (i = 0; i < m; i++)
^
0_0_25720799_21982\Main.java:38: 错误: 需要class, interface或enum
for (i = 0; i < m; i++)
^
0_0_25720799_21982\Main.java:38: 错误: 需要class, interface或enum
for (i = 0; i < m; i++)
^
0_0_25720799_21982\Main.java:40: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:40: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:40: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:42: 错误: 需要class, interface或enum
for (i = 1; i < m; i++)
^
0_0_25720799_21982\Main.java:42: 错误: 需要class, interface或enum
for (i = 1; i < m; i++)
^
0_0_25720799_21982\Main.java:42: 错误: 需要class, interface或enum
for (i = 1; i < m; i++)
^
0_0_25720799_21982\Main.java:44: 错误: 需要class, interface或enum
for (i = n - 1; i >= 0; i--)
^
0_0_25720799_21982\Main.java:44: 错误: 需要class, interface或enum
for (i = n - 1; i >= 0; i--)
^
0_0_25720799_21982\Main.java:44: 错误: 需要class, interface或enum
for (i = n - 1; i >= 0; i--)
^
0_0_25720799_21982\Main.java:47: 错误: 需要class, interface或enum
swap(x, y);
^
0_0_25720799_21982\Main.java:48: 错误: 需要class, interface或enum
p = 1;
^
0_0_25720799_21982\Main.java:49: 错误: 需要class, interface或enum
x[sa[0]] = 0;
^
0_0_25720799_21982\Main.java:50: 错误: 需要class, interface或enum
for (i = 1; i < n; i++)
^
0_0_25720799_21982\Main.java:50: 错误: 需要class, interface或enum
for (i = 1; i < n; i++)
^
0_0_25720799_21982\Main.java:50: 错误: 需要class, interface或enum
for (i = 1; i < n; i++)
^
0_0_25720799_21982\Main.java:52: 错误: 需要class, interface或enum
if (p >= n)
^
0_0_25720799_21982\Main.java:54: 错误: 需要class, interface或enum
m = p; //下次基数排序的最大值
^
0_0_25720799_21982\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_25720799_21982\Main.java:57: 错误: 需要class, interface或enum
n--;
^
0_0_25720799_21982\Main.java:58: 错误: 需要class, interface或enum
for (i = 0; i <= n; i++)
^
0_0_25720799_21982\Main.java:58: 错误: 需要class, interface或enum
for (i = 0; i <= n; i++)
^
0_0_25720799_21982\Main.java:58: 错误: 需要class, interface或enum
for (i = 0; i <= n; i++)
^
0_0_25720799_21982\Main.java:60: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:60: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:60: 错误: 需要class, interface或enum
for (i = 0; i < n; i++)
^
0_0_25720799_21982\Main.java:64: 错误: 需要class, interface或enum
j = sa[Rank[i] - 1];
^
0_0_25720799_21982\Main.java:65: 错误: 需要class, interface或enum
while (str[i + k] == str[j + k])
^
0_0_25720799_21982\Main.java:67: 错误: 需要class, interface或enum
height[Rank[i]] = k;
^
0_0_25720799_21982\Main.java:68: 错误: 需要class, interface或enum
}
^
0_0_25720799_21982\Main.java:71: 错误: 需要class, interface或enum
int RMQ[MAXN];
^
0_0_25720799_21982\Main.java:72: 错误: 需要class, interface或enum
int mm[MAXN];
^
0_0_25720799_21982\Main.java:74: 错误: 需要class, interface或enum
int best[20][MAXN];
^
0_0_25720799_21982\Main.java:75: 错误: 需要class, interface或enum
void initRMQ(int n)
^
0_0_25720799_21982\Main.java:78: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_25720799_21982\Main.java:78: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_25720799_21982\Main.java:78: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_25720799_21982\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_25720799_21982\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_25720799_21982\Main.java:80: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_25720799_21982\Main.java:82: 错误: 需要class, interface或enum
for (int i = 1; i <= mm[n]; i++)
^
0_0_25720799_21982\Main.java:82: 错误: 需要class, interface或enum
for (int i = 1; i <= mm[n]; i++)
^
0_0_25720799_21982\Main.java:82: 错误: 需要class, interface或enum
for (int i = 1; i <= mm[n]; i++)
^
0_0_25720799_21982\Main.java:83: 错误: 需要class, interface或enum
for (int j = 1; j + (1 << i) - 1 <= n; j++)
^
0_0_25720799_21982\Main.java:83: 错误: 需要class, interface或enum
for (int j = 1; j + (1 << i) - 1 <= n; j++)
^
0_0_25720799_21982\Main.java:86: 错误: 需要class, interface或enum
int b = best[i - 1][j + (1 << (i - 1))];
^
0_0_25720799_21982\Main.java:87: 错误: 需要class, interface或enum
if (RMQ[a] < RMQ[b])
^
0_0_25720799_21982\Main.java:89: 错误: 需要class, interface或enum
else
^
0_0_25720799_21982\Main.java:91: 错误: 需要class, interface或enum
}
^
0_0_25720799_21982\Main.java:96: 错误: 需要class, interface或enum
t = mm[b - a + 1];
^
0_0_25720799_21982\Main.java:97: 错误: 需要class, interface或enum
b -= (1 << t) - 1;
^
0_0_25720799_21982\Main.java:98: 错误: 需要class, interface或enum
a = best[t][a];
^
0_0_25720799_21982\Main.java:99: 错误: 需要class, interface或enum
b = best[t][b];
^
0_0_25720799_21982\Main.java:100: 错误: 需
|