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_27493139_4147.cpp: In function 'int main()':
0_0_27493139_4147.cpp:3:5: error: 'count' was not declared in this scope
     count=0;
     ^
0_0_27493139_4147.cpp:6:9: error: 'cnt' was not declared in this scope
         cnt=0;
         ^
0_0_27493139_4147.cpp:9:25: error: 'num' was not declared in this scope
             scanf("%d",&num[i]);
                         ^
0_0_27493139_4147.cpp:9:31: error: 'scanf' was not declared in this scope
             scanf("%d",&num[i]);
                               ^
0_0_27493139_4147.cpp:16:9: error: 'sum' was not declared in this scope
         sum = 0;
         ^
0_0_27493139_4147.cpp:19:20: error: 'num' was not declared in this scope
             sum += num[i]*i;
                    ^
0_0_27493139_4147.cpp:23:17: error: 'val' was not declared in this scope
                 val[++j] = i*k;
                 ^
0_0_27493139_4147.cpp:27:17: error: 'val' was not declared in this scope
                 val[++j] = num[i]*i;
                 ^
0_0_27493139_4147.cpp:29:41: error: 'printf' was not declared in this scope
         printf("Collection #%d:",++count);
                                         ^
0_0_27493139_4147.cpp:36:20: error: 'dp' was not declared in this scope
             memset(dp,0,sizeof(dp));
                    ^
0_0_27493139_4147.cpp:36:35: error: 'memset' was not declared in this scope
             memset(dp,0,sizeof(dp));
                                   ^
0_0_27493139_4147.cpp:39:34: error: 'val' was not declared in this scope
                 for(int z=sum;z>=val[i];z--)
                                  ^
0_0_27493139_4147.cpp:40:58: error: 'max' was not declared in this scope
                     dp[z] = max(dp[z-val[i]]+val[i],dp[z]);
                                                          ^


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-10-06 14:51:19, Gzip enabled