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_34170005_27272.cpp: In function 'int main()':
0_0_34170005_27272.cpp:6:40: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d%d%d",&n,&m,&k,&s)){
                                        ^
0_0_34170005_27272.cpp:7:30: error: 'memset' was not declared in this scope
         memset(dp,0,sizeof dp);
                              ^
0_0_34170005_27272.cpp:12:63: error: 'max' was not declared in this scope
                     dp[u][j]=max(dp[u][j],dp[u-1][j-q[i]]+w[i]);
                                                               ^
0_0_34170005_27272.cpp:13:33: error: 'puts' was not declared in this scope
         if(dp[s][m]<n) puts("-1");
                                 ^
0_0_34170005_27272.cpp:22:32: error: 'printf' was not declared in this scope
             printf("%d\n",m-ans);
                                ^


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.001000(s) query 1, Server time : 2025-02-18 16:07:27, Gzip enabled