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);
^
|