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_36856088_3667.cpp:6:12: error: 'N' was not declared in this scope
     int tr[N][26],fail[N],cnt=0,e[N];
            ^
0_0_36856088_3667.cpp:6:24: error: 'N' was not declared in this scope
     int tr[N][26],fail[N],cnt=0,e[N];
                        ^
0_0_36856088_3667.cpp:6:35: error: 'N' was not declared in this scope
     int tr[N][26],fail[N],cnt=0,e[N];
                                   ^
0_0_36856088_3667.cpp: In member function 'void AC::insert(char*)':
0_0_36856088_3667.cpp:11:16: error: 'tr' was not declared in this scope
             if(tr[p][n]==0)tr[p][n]=++cnt;//cnt++
                ^
0_0_36856088_3667.cpp:12:15: error: 'tr' was not declared in this scope
             p=tr[p][n];
               ^
0_0_36856088_3667.cpp:14:9: error: 'e' was not declared in this scope
         e[p]++;
         ^
0_0_36856088_3667.cpp: In member function 'void AC::build()':
0_0_36856088_3667.cpp:19:16: error: 'tr' was not declared in this scope
             if(tr[0][i])q.push(tr[0][i]);
                ^
0_0_36856088_3667.cpp:25:20: error: 'tr' was not declared in this scope
                 if(tr[u][i])fail[tr[u][i]]=tr[fail[u]][i],q.push(tr[u][i]);
                    ^
0_0_36856088_3667.cpp:25:29: error: 'fail' was not declared in this scope
                 if(tr[u][i])fail[tr[u][i]]=tr[fail[u]][i],q.push(tr[u][i]);
                             ^
0_0_36856088_3667.cpp:26:34: error: 'fail' was not declared in this scope
                 else tr[u][i]=tr[fail[u]][i];
                                  ^
0_0_36856088_3667.cpp: In member function 'int AC::query(char*)':
0_0_36856088_3667.cpp:33:15: error: 'tr' was not declared in this scope
             u=tr[u][t[i]-'a'];
               ^
0_0_36856088_3667.cpp:34:30: error: 'e' was not declared in this scope
             for(int j=u;j && e[j]!=-1;j=fail[j])res+=e[j],e[j]=-1;
                              ^
0_0_36856088_3667.cpp:34:41: error: 'fail' was not declared in this scope
             for(int j=u;j && e[j]!=-1;j=fail[j])res+=e[j],e[j]=-1;
                                         ^
0_0_36856088_3667.cpp: In function 'int main()':
0_0_36856088_3667.cpp:50:24: error: 'tmp' was not declared in this scope
             scanf("%s",tmp+1);
                        ^
0_0_36856088_3667.cpp:54:20: error: 'tmp' was not declared in this scope
         scanf("%s",tmp+1);
                    ^


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-29 23:34:18, Gzip enabled