0_0_31052144_1172.cpp:3:7: error: 'll' does not name a type
const ll maxn = 1e4 + 5;
^
0_0_31052144_1172.cpp:6:8: error: 'maxn' was not declared in this scope
ll nxt[maxn];
^
0_0_31052144_1172.cpp:7:8: error: 'maxn' was not declared in this scope
ll ans[maxn];
^
0_0_31052144_1172.cpp:9:6: error: 'maxn' was not declared in this scope
ll p[maxn];
^
0_0_31052144_1172.cpp:11:8: error: 'maxn' was not declared in this scope
char a[maxn], b[maxn];
^
0_0_31052144_1172.cpp:11:17: error: 'maxn' was not declared in this scope
char a[maxn], b[maxn];
^
0_0_31052144_1172.cpp:12:11: error: 'maxn' was not declared in this scope
ll has[2][maxn];
^
0_0_31052144_1172.cpp: In function 'll get_hash(ll, ll, ll)':
0_0_31052144_1172.cpp:15:9: error: 'has' was not declared in this scope
return has[t][R] - has[t][L - 1] * p[R - L + 1];
^
0_0_31052144_1172.cpp:15:37: error: 'p' was not declared in this scope
return has[t][R] - has[t][L - 1] * p[R - L + 1];
^
0_0_31052144_1172.cpp: In function 'void kmp(ll, char*, ll, char*, ll)':
0_0_31052144_1172.cpp:25:7: error: 'nxt' was not declared in this scope
for (nxt[1] = j = 0, i = 2; i <= n; nxt[i++] = j) {
^
0_0_31052144_1172.cpp:30:34: error: 'nxt' was not declared in this scope
while (j&&a[j + 1] != b[i])j = nxt[j];
^
0_0_31052144_1172.cpp:33:9: error: 'ans' was not declared in this scope
if (!ans[i])ans[i] = check(t, j, i);
^
0_0_31052144_1172.cpp:34:19: error: 'nxt' was not declared in this scope
}if (j == n)j = nxt[j];
^
0_0_31052144_1172.cpp: In function 'int main()':
0_0_31052144_1172.cpp:39:14: error: 'p' was not declared in this scope
for (ll i = p[0] = 1; i < maxn; i++)
^
0_0_31052144_1172.cpp:39:28: error: 'maxn' was not declared in this scope
for (ll i = p[0] = 1; i < maxn; i++)
^
0_0_31052144_1172.cpp:41:24: error: 'a' was not declared in this scope
while (~scanf("%s%s", a + 1, b + 1)) {
^
0_0_31052144_1172.cpp:41:31: error: 'b' was not declared in this scope
while (~scanf("%s%s", a + 1, b + 1)) {
^
0_0_31052144_1172.cpp:44:4: error: 'ans' was not declared in this scope
ans[i] = 0;
^
0_0_31052144_1172.cpp:45:4: error: 'has' was not declared in this scope
has[0][i] = has[0][i - 1] * base + a[i];
^
0_0_31052144_1172.cpp:51:19: error: 'ans' was not declared in this scope
printf("%lld", ans[i]);
^
|