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_18336581_24947.cpp:5:9: error: 'maxn' was not declared in this scope
 bool ok[maxn];
         ^
0_0_18336581_24947.cpp:6:8: error: 'maxn' was not declared in this scope
 int dp[maxn];
        ^
0_0_18336581_24947.cpp: In function 'int main()':
0_0_18336581_24947.cpp:11:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_18336581_24947.cpp:15:16: error: 'ok' was not declared in this scope
         memset(ok,0,sizeof ok);
                ^
0_0_18336581_24947.cpp:15:30: error: 'memset' was not declared in this scope
         memset(ok,0,sizeof ok);
                              ^
0_0_18336581_24947.cpp:16:21: error: 'strlen' was not declared in this scope
         len=strlen(s);
                     ^
0_0_18336581_24947.cpp:18:16: error: 'dp' was not declared in this scope
         memset(dp,0x3f,sizeof dp);
                ^
0_0_18336581_24947.cpp:39:46: error: 'min' was not declared in this scope
                 dp[i]=min(dp[i],dp[i-j]+dp[j]); //或者是  x=(x-1)&x;
                                              ^
0_0_18336581_24947.cpp:42:29: error: 'printf' was not declared in this scope
         printf("%d\n",dp[ed]);
                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 07:19:53, Gzip enabled