Problem | 01knapsack |
---|---|
User | christal |
Submission Time | 2023-12-23 15:21:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:9:8: error: ‘vi’ was not declared in this scope
9 | vi wt(n), v(n);
| ^~
01knapsack.cpp:10:12: error: ‘i’ was not declared in this scope
10 | FOR(i,0,n){
| ^
01knapsack.cpp:10:8: error: ‘FOR’ was not declared in this scope
10 | FOR(i,0,n){
| ^~~
01knapsack.cpp:25:13: error: ‘v’ was not declared in this scope
25 | if(v[i-1]>j){
| ^
01knapsack.cpp:31:34: error: ‘wt’ was not declared in this scope; did you mean ‘w’?
31 | if(prev[j-v[i-1]] <= w-wt[i-1]){
| ^~
| w