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_15728827_9974.cpp: In member function 'void HASH::build(char*)':
0_0_15728827_9974.cpp:11:21: error: 'strlen' was not declared in this scope
         len=strlen(s);
                     ^
0_0_15728827_9974.cpp: In function 'bool C(int)':
0_0_15728827_9974.cpp:39:23: error: 'sort' was not declared in this scope
     sort(id,id+cnt,cmp);
                       ^
0_0_15728827_9974.cpp:43:42: error: 'max' was not declared in this scope
             if (sum>=m) idx=max(idx,id[i]);
                                          ^
0_0_15728827_9974.cpp: In function 'int main()':
0_0_15728827_9974.cpp:51:26: error: 'scanf' was not declared in this scope
     while (~scanf("%d",&m)) {
                          ^
0_0_15728827_9974.cpp:55:19: error: 'strlen' was not declared in this scope
         n=strlen(s);
                   ^
0_0_15728827_9974.cpp:57:33: error: 'printf' was not declared in this scope
             printf("%d %d\n",n,0);
                                 ^
0_0_15728827_9974.cpp:61:28: error: 'printf' was not declared in this scope
             printf("none\n");
                            ^
0_0_15728827_9974.cpp:75:36: error: 'printf' was not declared in this scope
         if (ans==0) printf("none\n");
                                    ^
0_0_15728827_9974.cpp:76:38: error: 'printf' was not declared in this scope
         else printf("%d %d\n",ans,idx);
                                      ^


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-07-03 12:52:08, Gzip enabled