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_26252364_23982.cpp: In function 'void output(int)':
0_0_26252364_23982.cpp:5:20: error: 'printf' was not declared in this scope
     printf("%d\n",x);
                    ^
0_0_26252364_23982.cpp: In function 'void BM(char*, int, char*, int)':
0_0_26252364_23982.cpp:52:55: error: 'max' was not declared in this scope
           j += max(bmGs[i], bmBc[y[i + j]] - m + 1 + i);///不匹配 跳到x的前缀和y匹配的地方
                                                       ^
0_0_26252364_23982.cpp: In function 'int main()':
0_0_26252364_23982.cpp:57:24: error: 'scanf' was not declared in this scope
     while(~scanf("%s",x)){
                        ^
0_0_26252364_23982.cpp:59:30: error: 'printf' was not declared in this scope
         printf("%s  %s\n",x,y);
                              ^
0_0_26252364_23982.cpp:60:22: error: 'strlen' was not declared in this scope
         BM(y,strlen(y),x,strlen(x));
                      ^


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-18 18:26:24, Gzip enabled