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_36225822_4078.cpp: In function 'int ans()':
0_0_36225822_4078.cpp:11:27: error: 'memset' was not declared in this scope
     memset(dp,0,sizeof(dp));
                           ^
0_0_36225822_4078.cpp:12:20: error: 'number' was not declared in this scope
     for(int i=1;i<=number;i++)
                    ^
0_0_36225822_4078.cpp:13:24: error: 'volume' was not declared in this scope
         for(int j=1;i<=volume;j++)
                        ^
0_0_36225822_4078.cpp:18:67: error: 'value' was not declared in this scope
                 dp[i][j]=min(dp[i-1][j],dp[i-1][j-bone[i].volume]+value);
                                                                   ^
0_0_36225822_4078.cpp:20:15: error: 'number' was not declared in this scope
     return dp[number][volume];
               ^
0_0_36225822_4078.cpp:20:23: error: 'volume' was not declared in this scope
     return dp[number][volume];
                       ^


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-11-29 03:43:35, Gzip enabled