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_31000393_25600.cpp: In function 'void build()':
0_0_31000393_25600.cpp:158:17: error: 'q' was not declared in this scope
                 q[r++]=ch[0][i];
                 ^
0_0_31000393_25600.cpp:162:19: error: 'q' was not declared in this scope
             int p=q[l++];
                   ^
0_0_31000393_25600.cpp:165:33: error: 'fail' was not declared in this scope
                     ch[p][i]=ch[fail[p]][i];
                                 ^
0_0_31000393_25600.cpp:167:21: error: 'fail' was not declared in this scope
                     fail[ch[p][i]]=ch[fail[p]][i];
                     ^
0_0_31000393_25600.cpp: In function 'void count(char*)':
0_0_31000393_25600.cpp:186:25: error: 'fail' was not declared in this scope
                     tmp=fail[tmp];
                         ^
0_0_31000393_25600.cpp: At global scope:
0_0_31000393_25600.cpp:191:1: error: expected declaration before '}' token
 }ac;
 ^


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-10-05 20:25:59, Gzip enabled