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_39305148_20059.cpp: In function 'void multi_knapsack(int, int)':
0_0_39305148_20059.cpp:14:23: error: 'j' was not declared in this scope
   14 |                 if(dp[j-v[i]])//如果 dp[j-v[i]]是可达的,则 dp[j]也可以
      |                       ^
0_0_39305148_20059.cpp:22:31: error: 'j' was not declared in this scope
   22 |                         if(dp[j-v[i]*x])//如果 dp[j-v[i]*x]是可达的,则 dp[j]也可以
      |                               ^


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-05-07 03:57:06, Gzip enabled