| Problem | knapsack |
|---|---|
| User | shadowblade2718 |
| Submission Time | 2026-10-21 16:47:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knapsack.cpp: In function ‘int main()’:
knapsack.cpp:36:23: error: expected initializer before ‘int’
36 | long logn int newWeight = j + itemWeight;
| ^~~
knapsack.cpp:38:16: error: ‘newWeight’ was not declared in this scope; did you mean ‘itemWeight’?
38 | if(newWeight <= S){
| ^~~~~~~~~
| itemWeight