Problem harddisk
User user123
Submission Time 2023-08-21 16:43:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

harddisk.cpp:9:1: error: ‘illnt’ does not name a type; did you mean ‘int’?
9 | illnt dp[N];
| ^~~~~
| int
harddisk.cpp: In function ‘int main()’:
harddisk.cpp:18:13: error: ‘dp’ was not declared in this scope
18 | dp[b]=max(dp[b], dp[b-w[a]]+v[a]);
| ^~
harddisk.cpp:20:11: error: ‘dp’ was not declared in this scope
20 | cout<<dp[m]<<endl;
| ^~