Problem | harddisk |
---|---|
User | chiefoggy |
Submission Time | 2023-11-22 10:39:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
harddisk.cpp: In function ‘int main()’:
harddisk.cpp:9:50: error: template argument 1 is invalid
9 | vector<vector<int>dp(n+1, vector<int>(c+1, 0));
| ^
harddisk.cpp:9:50: error: template argument 2 is invalid
harddisk.cpp:13:17: error: ‘dp’ was not declared in this scope
13 | dp[i][j] = max(dp[i-1][j], dp[i-1][j-s[i-1]]+v[i-1]);
| ^~
harddisk.cpp:15:18: error: ‘dp’ was not declared in this scope
15 | else dp[i][j] = dp[i-1][j];
| ^~
harddisk.cpp:18:13: error: ‘dp’ was not declared in this scope
18 | cout << dp[n][c] << "\n";
| ^~