Problem | 01knapsack |
---|---|
User | zsinfo2010 |
Submission Time | 2023-11-15 15:10:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp:6:10: error: array bound is not an integer constant before ‘]’ token
6 | int w[W+5], v[1000000005];
| ^
01knapsack.cpp: In function ‘int32_t main()’:
01knapsack.cpp:11:16: error: ‘w’ was not declared in this scope
11 | cin >> w[i] >> v[i];
| ^
01knapsack.cpp:14:30: error: ‘m’ was not declared in this scope
14 | for (int j = 0; j <= m;j++) {
| ^
01knapsack.cpp:16:22: error: ‘w’ was not declared in this scope
16 | if (j >= w[i]) {
| ^