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_21026473_32427.cpp:5:1: error: 'UL' does not name a type
 UL MMax(UL x, UL y)
 ^
0_0_21026473_32427.cpp:10:1: error: 'UL' does not name a type
 UL value[1005];
 ^
0_0_21026473_32427.cpp:12:1: error: 'UL' does not name a type
 UL f[1005];
 ^
0_0_21026473_32427.cpp: In function 'int main()':
0_0_21026473_32427.cpp:20:3: error: 'UL' was not declared in this scope
   UL k;
   ^
0_0_21026473_32427.cpp:22:36: error: 'value' was not declared in this scope
   for (i=0; i<n; i++) scanf("%IU", value+i);
                                    ^
0_0_21026473_32427.cpp:24:17: error: 'k' was not declared in this scope
   scanf("%IU", &k);
                 ^
0_0_21026473_32427.cpp:25:9: error: 'f' was not declared in this scope
   fill (f, f+n, 0);
         ^
0_0_21026473_32427.cpp:29:17: error: 'value' was not declared in this scope
     for(j=k; j>=value[i]; j--)
                 ^
0_0_21026473_32427.cpp:32:46: error: 'MMax' was not declared in this scope
      f[j]=MMax(f[j], f[j-weight[i]]+ value[i]);
                                              ^


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 13:17:00, Gzip enabled