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_36175110_29905.cpp: In function 'int biggerbackpack(int, int)':
0_0_36175110_29905.cpp:11:8: error: 'h' was not declared in this scope
  for(j=h[i];j<=s;j++)
        ^
0_0_36175110_29905.cpp:12:5: error: 'dp' was not declared in this scope
  if(dp[j]>dp[j-h[i]]+v[i])
     ^
0_0_36175110_29905.cpp:12:22: error: 'v' was not declared in this scope
  if(dp[j]>dp[j-h[i]]+v[i])
                      ^
0_0_36175110_29905.cpp:15:7: error: 'flag' was not declared in this scope
   if(!flag && dp[s]<0x3f3f3f3f)
       ^
0_0_36175110_29905.cpp:18:9: error: 'dp' was not declared in this scope
  return dp[s];
         ^
0_0_36175110_29905.cpp: In function 'int main()':
0_0_36175110_29905.cpp:29:3: error: 'flag' was not declared in this scope
   flag=0;
   ^
0_0_36175110_29905.cpp:31:10: error: 'dp' was not declared in this scope
   memset(dp,0x3f3f3f3f,sizeof(dp));
          ^
0_0_36175110_29905.cpp:34:17: error: 'v' was not declared in this scope
   scanf("%d%d",&v[i],&h[i]);
                 ^
0_0_36175110_29905.cpp:34:23: error: 'h' was not declared in this scope
   scanf("%d%d",&v[i],&h[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 20:27:07, Gzip enabled