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_20979285_16403.cpp:4:5: error: 'N' was not declared in this scope
 } s[N];
     ^
0_0_20979285_16403.cpp: In function 'int main()':
0_0_20979285_16403.cpp:8:18: error: 'scanf' was not declared in this scope
     scanf("%d",&t);
                  ^
0_0_20979285_16403.cpp:15:27: error: 's' was not declared in this scope
             scanf("%d%d",&s[i].h,&s[i].c);
                           ^
0_0_20979285_16403.cpp:18:16: error: 'b' was not declared in this scope
         memset(b,0,sizeof(b));
                ^
0_0_20979285_16403.cpp:18:29: error: 'memset' was not declared in this scope
         memset(b,0,sizeof(b));
                             ^
0_0_20979285_16403.cpp:20:30: error: 's' was not declared in this scope
             for(int j=sum;j>=s[i].c;j--)
                              ^
0_0_20979285_16403.cpp:21:49: error: 'max' was not declared in this scope
                 b[j]=max(b[j],b[j-s[i].c]+s[i].h);
                                                 ^
0_0_20979285_16403.cpp:22:9: error: 'll' was not declared in this scope
         ll ans=0;
         ^
0_0_20979285_16403.cpp:23:16: error: expected ';' before 'i'
         for(ll i=sum;i>=0;i--)
                ^
0_0_20979285_16403.cpp:23:22: error: 'i' was not declared in this scope
         for(ll i=sum;i>=0;i--)
                      ^
0_0_20979285_16403.cpp:24:13: error: 'ans' was not declared in this scope
             ans=max(ans,b[i]*b[i]-b[i]*i-i*i);
             ^
0_0_20979285_16403.cpp:24:45: error: 'max' was not declared in this scope
             ans=max(ans,b[i]*b[i]-b[i]*i-i*i);
                                             ^
0_0_20979285_16403.cpp:25:25: error: 'ans' was not declared in this scope
         printf("%lld\n",ans);
                         ^
0_0_20979285_16403.cpp:25:28: error: 'printf' was not declared in this scope
         printf("%lld\n",ans);
                            ^


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-02 14:38:04, Gzip enabled