| Problem | knapsack |
|---|---|
| User | LL |
| Submission Time | 2026-02-16 17:14:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knapsack.cpp: In function ‘void check(ll, ll)’:
knapsack.cpp:14:5: error: ‘w’ was not declared in this scope
14 | if(w==0) return;
| ^
knapsack.cpp:15:2: error: ‘v’ was not declared in this scope
15 | v = arr[opt[i] S] F F;
| ^
knapsack.cpp:15:10: error: ‘opt’ was not declared in this scope
15 | v = arr[opt[i] S] F F;
| ^~~
knapsack.cpp:16:2: error: ‘w’ was not declared in this scope
16 | w = arr[opt[i] S] F S;
| ^
knapsack.cpp:17:2: error: ‘k’ was not declared in this scope
17 | k = arr[opt[i] S] S;
| ^
knapsack.cpp:18:20: error: expected ‘;’ before ‘for’
18 | check(curr_w, i+1)
| ^
| ;
19 | for(int j=1; j<=k; j++){
| ~~~
knapsack.cpp:19:15: error: ‘j’ was not declared in this scope
19 | for(int j=1; j<=k; j++){
| ^
knapsack.cpp: In func