Problem knapsack
User PlayVoltz
Submission Time 2023-09-05 14:58:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knapsack.cpp: In function ‘int main()’:
knapsack.cpp:23:31: error: expected ‘;’ before ‘]’ token
23 | for (int l = amount[i]; l>=0]; --l) {
| ^
| ;
knapsack.cpp:23:31: error: expected primary-expression before ‘]’ token
knapsack.cpp:23:31: error: expected ‘)’ before ‘]’ token
23 | for (int l = amount[i]; l>=0]; --l) {
| ~ ^
| )
knapsack.cpp:23:31: error: expected primary-expression before ‘]’ token
knapsack.cpp:23:36: error: ‘l’ was not declared in this scope
23 | for (int l = amount[i]; l>=0]; --l) {
| ^