0_0_21140049_18095.cpp: In function 'void add(int)':
0_0_21140049_18095.cpp:2:16: error: 'cnt' was not declared in this scope
int np = ++cnt,p = last;
^
0_0_21140049_18095.cpp:3:5: error: 'last' was not declared in this scope
last = np;
^
0_0_21140049_18095.cpp:4:5: error: 'l' was not declared in this scope
l[np] = ++len; //memset(ch[np],0,sizeof ch[np]);
^
0_0_21140049_18095.cpp:4:15: error: 'len' was not declared in this scope
l[np] = ++len; //memset(ch[np],0,sizeof ch[np]);
^
0_0_21140049_18095.cpp:5:5: error: 'lp' was not declared in this scope
lp[np] = 0;//我自己加的东西
^
0_0_21140049_18095.cpp:6:12: error: 'p' was not declared in this scope
for (; p && !ch[p][c]; p = fa[p]) ch[p][c] = np;
^
0_0_21140049_18095.cpp:6:18: error: 'ch' was not declared in this scope
for (; p && !ch[p][c]; p = fa[p]) ch[p][c] = np;
^
0_0_21140049_18095.cpp:6:32: error: 'fa' was not declared in this scope
for (; p && !ch[p][c]; p = fa[p]) ch[p][c] = np;
^
0_0_21140049_18095.cpp:7:10: error: 'p' was not declared in this scope
if (!p) fa[np] = 1;
^
0_0_21140049_18095.cpp:7:13: error: 'fa' was not declared in this scope
if (!p) fa[np] = 1;
^
0_0_21140049_18095.cpp:9:17: error: 'ch' was not declared in this scope
int q = ch[p][c];
^
0_0_21140049_18095.cpp:10:31: error: 'fa' was not declared in this scope
if (l[p] + 1 == l[q]) fa[np] = q;
^
0_0_21140049_18095.cpp:15:45: error: 'memcpy' was not declared in this scope
memcpy(ch[nq],ch[q],sizeof ch[q]);
^
0_0_21140049_18095.cpp:16:13: error: 'fa' was not declared in this scope
fa[nq] = fa[q];
^
0_0_21140049_18095.cpp: In function 'void add(char)':
0_0_21140049_18095.cpp:23:16: error: 'cnt' was not declared in this scope
int np = ++cnt, p = last;
^
0_0_21140049_18095.cpp:24:5: error: 'last' was not declared in this scope
last = np;
^
0_0_21140049_18095.cpp:25:5: error: 'rl' was not declared in this scope
rl[np] = ma[np] = ma[p] + 1;
^
0_0_21140049_18095.cpp:25:14: error: 'ma' was not declared in this scope
rl[np] = ma[np] = ma[p] + 1;
^
0_0_21140049_18095.cpp:25:26: error: 'p' was not declared in this scope
rl[np] = ma[np] = ma[p] + 1;
^
0_0_21140049_18095.cpp:26:12: error: 'ch' was not declared in this scope
memset(ch[np], 0, sizeof ch[np]);
^
0_0_21140049_18095.cpp:26:36: error: 'memset' was not declared in this scope
memset(ch[np], 0, sizeof ch[np]);
^
0_0_21140049_18095.cpp:27:47: error: 'fa' was not declared in this scope
while (p && !ch[p][c]) ch[p][c] = np, p = fa[p];
^
0_0_21140049_18095.cpp:28:13: error: 'fa' was not declared in this scope
if (!p) fa[np] = rt;
^
0_0_21140049_18095.cpp:28:22: error: 'rt' was not declared in this scope
if (!p) fa[np] = rt;
^
0_0_21140049_18095.cpp:31:33: error: 'fa' was not declared in this scope
if (ma[p] + 1 == ma[q]) fa[np] = q;
^
0_0_21140049_18095.cpp:36:47: error: 'memcpy' was not declared in this scope
memcpy(ch[nq], ch[q], sizeof ch[q]);
^
0_0_21140049_18095.cpp:37:13: error: 'fa' was not declared in this scope
fa[nq] = fa[q];
^
|