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_23940666_676.cpp:3:7: error: 'MAXN' was not declared in this scope
 int f[MAXN];    //±³°όΚύΧι
       ^
0_0_23940666_676.cpp: In function 'void ZeroOnePack(int, int)':
0_0_23940666_676.cpp:9:29: error: 'min' was not declared in this scope
     int i=min(maxcost,v-cost);
                             ^
0_0_23940666_676.cpp:12:15: error: 'f' was not declared in this scope
         while(f[i]==ANS) i--;
               ^
0_0_23940666_676.cpp:13:12: error: 'f' was not declared in this scope
         if(f[cost+i]<f[i]+weight) f[cost+i]=f[i]+weight;
            ^
0_0_23940666_676.cpp:14:37: error: 'max' was not declared in this scope
         maxcost = max(maxcost,cost+i);
                                     ^
0_0_23940666_676.cpp:18:9: error: 'f' was not declared in this scope
         f[maxcost+cost]=f[maxcost]+weight;
         ^
0_0_23940666_676.cpp:22:11: error: 'f' was not declared in this scope
        if(f[i]!=ANS && f[i+cost] < f[i] + weight) f[i+cost]=f[i]+weight;
           ^
0_0_23940666_676.cpp: In function 'void CompletePack(int, int)':
0_0_23940666_676.cpp:29:12: error: 'f' was not declared in this scope
         if(f[i]!=ANS && f[t=i+cost] < f[i]+weight) f[t]=f[i]+weight;
            ^
0_0_23940666_676.cpp:30:28: error: 'max' was not declared in this scope
     maxcost = max(maxcost,t);
                            ^


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-05 18:10:32, Gzip enabled