0_0_22343552_1393.cpp: In function 'void add(int, int)':
0_0_22343552_1393.cpp:27:16: error: 'first' was not declared in this scope
e[id].next=first[x];
^
0_0_22343552_1393.cpp: In function 'int get(int)':
0_0_22343552_1393.cpp:34:14: error: 'd' was not declared in this scope
sum+=d[x];
^
0_0_22343552_1393.cpp: In function 'void update(int, int)':
0_0_22343552_1393.cpp:42:9: error: 'd' was not declared in this scope
d[x]+=y;
^
0_0_22343552_1393.cpp: In function 'void insert(char*)':
0_0_22343552_1393.cpp:51:28: error: 'fa' was not declared in this scope
if (s[i]=='B') now=fa[now];
^
0_0_22343552_1393.cpp:52:29: error: 'num' was not declared in this scope
else if (s[i]=='P') num[++cnt]=now;
^
0_0_22343552_1393.cpp:55:18: error: 'trie' was not declared in this scope
if (!trie[now][s[i]-'a'])
^
0_0_22343552_1393.cpp:57:17: error: 'fa' was not declared in this scope
fa[tot]=now;
^
0_0_22343552_1393.cpp:58:17: error: 'trie' was not declared in this scope
now=trie[now][s[i]-'a'];
^
0_0_22343552_1393.cpp: In function 'void build()':
0_0_22343552_1393.cpp:71:13: error: 'trie' was not declared in this scope
if (trie[now][i])
^
0_0_22343552_1393.cpp:73:17: error: 'fail' was not declared in this scope
tmp=fail[now];
^
0_0_22343552_1393.cpp: In function 'void dfs(int)':
0_0_22343552_1393.cpp:83:5: error: 'L' was not declared in this scope
L[x]=++sum;
^
0_0_22343552_1393.cpp:84:16: error: 'first' was not declared in this scope
for (int i=first[x];i;i=e[i].next)
^
0_0_22343552_1393.cpp:86:5: error: 'R' was not declared in this scope
R[x]=sum;
^
0_0_22343552_1393.cpp: In function 'int main()':
0_0_22343552_1393.cpp:93:34: error: 'fail' was not declared in this scope
for (int i=1;i<=tot;i++) add(fail[i],i);
^
0_0_22343552_1393.cpp:112:21: error: 'ans' was not declared in this scope
ans[q[t].ind]=get(R[num[q[t].x]])-get(L[num[q[t].x]]-1);
^
0_0_22343552_1393.cpp:112:39: error: 'R' was not declared in this scope
ans[q[t].ind]=get(R[num[q[t].x]])-get(L[num[q[t].x]]-1);
^
0_0_22343552_1393.cpp:112:41: error: 'num' was not declared in this scope
ans[q[t].ind]=get(R[num[q[t].x]])-get(L[num[q[t].x]]-1);
^
0_0_22343552_1393.cpp:112:59: error: 'L' was not declared in this scope
ans[q[t].ind]=get(R[num[q[t].x]])-get(L[num[q[t].x]]-1);
^
0_0_22343552_1393.cpp:118:36: error: 'L' was not declared in this scope
else if (s[i]=='B') update(L[now],-1),now=fa[now];
^
0_0_22343552_1393.cpp:118:51: error: 'fa' was not declared in this scope
else if (s[i]=='B') update(L[now],-1),now=fa[now];
^
0_0_22343552_1393.cpp:119:18: error: 'trie' was not declared in this scope
else now=trie[now][s[i]-'a'],update(L[now],1);
^
0_0_22343552_1393.cpp:119:45: error: 'L' was not declared in this scope
else now=trie[now][s[i]-'a'],update(L[now],1);
^
0_0_22343552_1393.cpp:121:41: error: 'ans' was not declared in this scope
for (int i=1;i<=m;i++)printf("%d\n",ans[i]);
^
|