Problem knapsack
User AJigglypuffCoder
Submission Time 2025-02-03 16:06:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knapsack.cpp: In function ‘int maxVal(std::vector<item_type>, int, int)’:
knapsack.cpp:48:60: error: expected ‘;’ before ‘tVal’
48 | ttK = tTMaxNoAccToWL>its2[i].K?its2[i].K:tTMaxNoAccToWL
| ^
| ;
49 | tVal = its2[i].V*ttK + maxVal(its2, weight_left-ttK, i);
| ~~~~