| Problem | knapsack |
|---|---|
| User | LL |
| Submission Time | 2026-02-16 17:13:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knapsack.cpp:4:25: error: expected ‘;’ before ‘using’
4 | using pll = pair<ll, ll>
| ^
| ;
5 | using plll = p<pll, ll>
| ~~~~~
knapsack.cpp: In function ‘void check(ll, ll)’:
knapsack.cpp:13:5: error: ‘arr’ was not declared in this scope
13 | if(arr[i] S == -1) return;
| ^~~
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:6: error: ‘arr’ 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;