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_30065118_23305.cpp: In function 'int main()':
0_0_30065118_23305.cpp:15:11: error: 'w' was not declared in this scope
    { if(j<w[i])
           ^
0_0_30065118_23305.cpp:16:14: error: invalid types 'int[int]' for array subscript
     dp[i+1][j]=dp[i][j];
              ^
0_0_30065118_23305.cpp:16:23: error: invalid types 'int[int]' for array subscript
     dp[i+1][j]=dp[i][j];
                       ^
0_0_30065118_23305.cpp:17:14: error: invalid types 'int[int]' for array subscript
     dp[i+1][j]=max(dp[i+1][j],dp[i][j-p[i]]+h[i])
              ^
0_0_30065118_23305.cpp:17:29: error: invalid types 'int[int]' for array subscript
     dp[i+1][j]=max(dp[i+1][j],dp[i][j-p[i]]+h[i])
                             ^
0_0_30065118_23305.cpp:17:43: error: invalid types 'int[int]' for array subscript
     dp[i+1][j]=max(dp[i+1][j],dp[i][j-p[i]]+h[i])
                                           ^
0_0_30065118_23305.cpp:19:18: error: invalid types 'int[int]' for array subscript
   cout<<dp[m][mon]<<endl;
                  ^
0_0_30065118_23305.cpp:20:25: error: 'memset' was not declared in this scope
   memset(dp,0,sizeof(dp));
                         ^


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-17 13:55:58, Gzip enabled