0_0_16772309_15923.cpp:15:27: error: invalid use of non-static data member 'pt::LEN'
const int LEN = 1e4 + 10;
^
0_0_16772309_15923.cpp:16:13: error: from this location
int num[LEN], len[LEN], cnt[LEN], ch[LEN][26], fail[LEN], S[LEN];
^
0_0_16772309_15923.cpp:15:27: error: invalid use of non-static data member 'pt::LEN'
const int LEN = 1e4 + 10;
^
0_0_16772309_15923.cpp:16:23: error: from this location
int num[LEN], len[LEN], cnt[LEN], ch[LEN][26], fail[LEN], S[LEN];
^
0_0_16772309_15923.cpp:15:27: error: invalid use of non-static data member 'pt::LEN'
const int LEN = 1e4 + 10;
^
0_0_16772309_15923.cpp:16:33: error: from this location
int num[LEN], len[LEN], cnt[LEN], ch[LEN][26], fail[LEN], S[LEN];
^
0_0_16772309_15923.cpp:15:27: error: invalid use of non-static data member 'pt::LEN'
const int LEN = 1e4 + 10;
^
0_0_16772309_15923.cpp:16:42: error: from this location
int num[LEN], len[LEN], cnt[LEN], ch[LEN][26], fail[LEN], S[LEN];
^
0_0_16772309_15923.cpp:15:27: error: invalid use of non-static data member 'pt::LEN'
const int LEN = 1e4 + 10;
^
0_0_16772309_15923.cpp:16:57: error: from this location
int num[LEN], len[LEN], cnt[LEN], ch[LEN][26], fail[LEN], S[LEN];
^
0_0_16772309_15923.cpp:15:27: error: invalid use of non-static data member 'pt::LEN'
const int LEN = 1e4 + 10;
^
0_0_16772309_15923.cpp:16:65: error: from this location
int num[LEN], len[LEN], cnt[LEN], ch[LEN][26], fail[LEN], S[LEN];
^
0_0_16772309_15923.cpp: In member function 'int pt::creat(int)':
0_0_16772309_15923.cpp:20:16: error: 'ch' was not declared in this scope
memset(ch[tot], 0, sizeof ch[tot]);
^
0_0_16772309_15923.cpp:21:9: error: 'cnt' was not declared in this scope
cnt[tot] = num[tot] = 0;
^
0_0_16772309_15923.cpp:21:20: error: 'num' was not declared in this scope
cnt[tot] = num[tot] = 0;
^
0_0_16772309_15923.cpp:22:9: error: 'len' was not declared in this scope
len[tot] = l;
^
0_0_16772309_15923.cpp: In member function 'void pt::init()':
0_0_16772309_15923.cpp:29:9: error: 'S' was not declared in this scope
S[n] = -1;
^
0_0_16772309_15923.cpp:30:9: error: 'fail' was not declared in this scope
fail[0] = 1;
^
0_0_16772309_15923.cpp: In member function 'int pt::get_fail(int)':
0_0_16772309_15923.cpp:33:15: error: 'S' was not declared in this scope
while(S[n-len[x]-1] != S[n]) {
^
0_0_16772309_15923.cpp:33:19: error: 'len' was not declared in this scope
while(S[n-len[x]-1] != S[n]) {
^
0_0_16772309_15923.cpp:34:17: error: 'fail' was not declared in this scope
x = fail[x];
^
0_0_16772309_15923.cpp: In member function 'void pt::add(int)':
0_0_16772309_15923.cpp:39:9: error: 'S' was not declared in this scope
S[++n] = c;
^
0_0_16772309_15923.cpp:41:12: error: 'ch' was not declared in this scope
if(ch[cur][c] == 0) {
^
0_0_16772309_15923.cpp:42:29: error: 'len' was not declared in this scope
int now = creat(len[cur] + 2);
^
0_0_16772309_15923.cpp:43:13: error: 'fail' was not declared in this scope
fail[now] = ch[get_fail(fail[cur])][c];
^
0_0_16772309_15923.cpp:45:13: error: 'num' was not declared in this scope
num[now] = num[fail[now]] + 1;
^
0_0_16772309_15923.cpp:47:16: error: 'ch' was not declared in this scope
last = ch[cur][c];
^
0_0_16772309_15923.cpp:48:9: error: 'cnt' was not declared in this scope
cnt[last]++;
^
0_0_16772309_15923.cpp: In member function 'void pt::calc()':
0_0_16772309_15923.cpp:51:43: error: 'cnt' was not declared in this scope
for(int i = tot - 1; i >= 0; --i) cnt[fail[i]] += cnt[i];
^
0_0_16772309_15923.cpp:51:47: error: 'fail' was not declared in this scope
for(int i = tot - 1; i >= 0; --i) cnt[fail[i]] += cnt[i];
^
|