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