F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
                                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 23:45:30, Gzip enabled