0_0_22020212_6280\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_22020212_6280\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_22020212_6280\Main.java:4: 错误: 需要class, interface或enum
const int N = 6e5 + 10;
^
0_0_22020212_6280\Main.java:5: 错误: 需要class, interface或enum
const int seed = 131;
^
0_0_22020212_6280\Main.java:6: 错误: 需要class, interface或enum
const int invseed = 122158555;
^
0_0_22020212_6280\Main.java:7: 错误: 需要class, interface或enum
const int mod = 1000173169;
^
0_0_22020212_6280\Main.java:8: 错误: 非法字符: '#'
#define ll long long
^
0_0_22020212_6280\Main.java:8: 错误: 需要class, interface或enum
#define ll long long
^
0_0_22020212_6280\Main.java:12: 错误: 需要class, interface或enum
for(int i = 0; i < n; ++i)
^
0_0_22020212_6280\Main.java:12: 错误: 需要class, interface或enum
for(int i = 0; i < n; ++i)
^
0_0_22020212_6280\Main.java:12: 错误: 需要class, interface或enum
for(int i = 0; i < n; ++i)
^
0_0_22020212_6280\Main.java:14: 错误: 需要class, interface或enum
return ans;
^
0_0_22020212_6280\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:19: 错误: 需要class, interface或enum
int i, len;
^
0_0_22020212_6280\Main.java:20: 错误: 需要class, interface或enum
bool rev;
^
0_0_22020212_6280\Main.java:21: 错误: 需要class, interface或enum
node() {}
^
0_0_22020212_6280\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:28: 错误: 需要class, interface或enum
char s1[N], s2[N], a[N], b[N];
^
0_0_22020212_6280\Main.java:29: 错误: 需要class, interface或enum
map<int, int>mp;
^
0_0_22020212_6280\Main.java:30: 错误: 需要class, interface或enum
int n;
^
0_0_22020212_6280\Main.java:32: 错误: 需要class, interface或enum
int cmp(char *a, char * b, int n, int m) {//在[0,m)范围内 a大于b返回1 等于返回0 小于返回-1
^
0_0_22020212_6280\Main.java:34: 错误: 需要class, interface或enum
for(int i = 0; i < l; ++i)
^
0_0_22020212_6280\Main.java:34: 错误: 需要class, interface或enum
for(int i = 0; i < l; ++i)
^
0_0_22020212_6280\Main.java:34: 错误: 需要class, interface或enum
for(int i = 0; i < l; ++i)
^
0_0_22020212_6280\Main.java:36: 错误: 需要class, interface或enum
else if(a[i] < b[i]) return -1;
^
0_0_22020212_6280\Main.java:37: 错误: 需要class, interface或enum
if(n < m) return -1;
^
0_0_22020212_6280\Main.java:38: 错误: 需要class, interface或enum
return 0;
^
0_0_22020212_6280\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:43: 错误: 需要class, interface或enum
while(l <= r) {
^
0_0_22020212_6280\Main.java:45: 错误: 需要class, interface或enum
if(cmp(str[mid].s, s, str[mid].len, m) >= 0) r = mid - 1, ans = mid;
^
0_0_22020212_6280\Main.java:46: 错误: 需要class, interface或enum
else l = mid + 1;
^
0_0_22020212_6280\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:53: 错误: 需要class, interface或enum
while(l <= r) {
^
0_0_22020212_6280\Main.java:55: 错误: 需要class, interface或enum
if(cmp(str[mid].s, s, str[mid].len, m) > 0) r = mid - 1, ans = mid;
^
0_0_22020212_6280\Main.java:56: 错误: 需要class, interface或enum
else l = mid + 1;
^
0_0_22020212_6280\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:63: 错误: 需要class, interface或enum
Query() {}
^
0_0_22020212_6280\Main.java:67: 错误: 需要class, interface或enum
vector<Query> job[N];
^
0_0_22020212_6280\Main.java:68: 错误: 需要class, interface或enum
int x[N], y[N];
^
0_0_22020212_6280\Main.java:70: 错误: 需要class, interface或enum
int tree[N];
^
0_0_22020212_6280\Main.java:71: 错误: 非法字符: '#'
#define LL (rt << 1)
^
0_0_22020212_6280\Main.java:71: 错误: 需要class, interface或enum
#define LL (rt << 1)
^
0_0_22020212_6280\Main.java:72: 错误: 非法字符: '#'
#define RR (rt << 1 | 1)
^
0_0_22020212_6280\Main.java:73: 错误: 非法字符: '#'
#define lson l, mid, LL
^
0_0_22020212_6280\Main.java:74: 错误: 非法字符: '#'
#define rson mid + 1, r, RR
^
0_0_22020212_6280\Main.java:76: 错误: 需要class, interface或enum
void up(int rt) { tree[rt] = tree[LL] + tree[RR]; }
^
0_0_22020212_6280\Main.java:79: 错误: 需要class, interface或enum
if(l == r) return;
^
0_0_22020212_6280\Main.java:80: 错误: 需要class, interface或enum
int mid = l + r >> 1;
^
0_0_22020212_6280\Main.java:81: 错误: 需要class, interface或enum
build(lson);
^
0_0_22020212_6280\Main.java:82: 错误: 需要class, interface或enum
build(rson);
^
0_0_22020212_6280\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:86: 错误: 需要class, interface或enum
if(l == r) { tree[rt] ++; return; }
^
0_0_22020212_6280\Main.java:86: 错误: 需要class, interface或enum
if(l == r) { tree[rt] ++; return; }
^
0_0_22020212_6280\Main.java:88: 错误: 需要class, interface或enum
if(x <= mid) update(lson, x);
^
0_0_22020212_6280\Main.java:89: 错误: 需要class, interface或enum
else update(rson, x);
^
0_0_22020212_6280\Main.java:90: 错误: 需要class, interface或enum
up(rt);
^
0_0_22020212_6280\Main.java:91: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:95: 错误: 需要class, interface或enum
int mid = l + r >> 1;
^
0_0_22020212_6280\Main.java:96: 错误: 需要class, interface或enum
int ans = 0;
^
0_0_22020212_6280\Main.java:97: 错误: 需要class, interface或enum
if(L <= mid) ans += query(L, R, lson);
^
0_0_22020212_6280\Main.java:98: 错误: 需要class, interface或enum
if(R > mid) ans += query(L, R, rson);
^
0_0_22020212_6280\Main.java:99: 错误: 需要class, interface或enum
return ans;
^
0_0_22020212_6280\Main.java:100: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:104: 错误: 需要class, interface或enum
void init() {
^
0_0_22020212_6280\Main.java:106: 错误: 需要class, interface或enum
for(int i = 1; i < N; ++i)
^
0_0_22020212_6280\Main.java:106: 错误: 需要class, interface或enum
for(int i = 1; i < N; ++i)
^
0_0_22020212_6280\Main.java:106: 错误: 需要class, interface或enum
for(int i = 1; i < N; ++i)
^
0_0_22020212_6280\Main.java:108: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:112: 错误: 需要class, interface或enum
int hb = Hash(b, n);
^
0_0_22020212_6280\Main.java:113: 错误: 需要class, interface或enum
int l = min(n, m);
^
0_0_22020212_6280\Main.java:114: 错误: 需要class, interface或enum
int ans = 0;
^
0_0_22020212_6280\Main.java:115: 错误: 需要class, interface或enum
for(int i = 1; i <= l; ++i) {
^
0_0_22020212_6280\Main.java:115: 错误: 需要class, interface或enum
for(int i = 1; i <= l; ++i) {
^
0_0_22020212_6280\Main.java:115: 错误: 需要class, interface或enum
for(int i = 1; i <= l; ++i) {
^
0_0_22020212_6280\Main.java:119: 错误: 需要class, interface或enum
hb = ((hb - (ll)b[i - 1] * base[m - i]) % mod + mod) % mod;
^
0_0_22020212_6280\Main.java:120: 错误: 需要class, interface或enum
int tot = ((ll)ha * base[m - i] + hb) % mod;
^
0_0_22020212_6280\Main.java:121: 错误: 需要class, interface或enum
ans += mp[tot];
^
0_0_22020212_6280\Main.java:122: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:124: 错误: 需要class, interface或enum
}
^
0_0_22020212_6280\Main.java:127: 错误: 非法字符: '#'
#define PB push_back
^
0_0_22020212_6280\Main.java:127: 错误: 需要class, interface或enum
#define PB push_back
^
0_0_22020212_6280\Main.java:131: 错误: 需要class, interface或enum
int T, q, n2;
^
0_0_22020212_6280\Main.java:132: 错误: 需要class, interface或enum
scanf("%d", &T);
^
0_0_22020212_6280\Main.java:133: 错误: 需要class, interface或enum
while(T--) {
^
0_0_22020212_6280\Main.java:135: 错误: 需要class, interface或enum
scanf("%d%d", &n, &q);
^
0_0_22020212_6280\Main.java:136: 错误: 需要class, interface或enum
n2 = n * 2;
^
0_0_22020212_6280\Main.java:137: 错误: 需要class, interface或enum
int p = 0;
^
0_0_22020212_6280\Main.java:138: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) {
^
0_0_22020212_6280\Main.java:138: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) {
^
0_0_22020212_6280\Main.java:138: 错误: 需要class, interface或enum
for(int i = 1; i <= n; ++i) {
^
0_0_22020212_6280\Main.java:140: 错误: 需要class, interface或enum
int m = strlen(s1 + p);
^
0_0_22020212_6280\Main.java:141: 错误: 需要class, interface或enum
int r = p + m - 1, l = p;
^
0_0_22020212_6280\Main.java:142: 错误: 需要class, interface或enum
for(int j = r, k = l; j >= l; --j, ++k)
^
0_0_22020212_6280\Main.java:142: 错误: 需要class, interface或enum
for(int j = r, k = l; j >= l; --j, ++k)
^
0_0_22020212
|