Problem | knapsack |
---|---|
User | StewartStudios |
Submission Time | 2025-08-18 21:59:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knapsack.cpp: In function ‘int32_t main()’:
knapsack.cpp:28:17: error: expected ‘,’ or ‘;’ before ‘for’
28 | for (int j = w; j >= W; j--){
| ^~~
knapsack.cpp:28:33: error: ‘j’ was not declared in this scope
28 | for (int j = w; j >= W; j--){
| ^