Problem knapsack
User shadowblade2718
Submission Time 2026-10-21 20:16:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knapsack.cpp: In function ‘int main()’:
knapsack.cpp:17:13: error: ‘items’ was not declared in this scope
17 | items[ai] = (make_pair(a*pow(2,j),b*pow(2,j)));
| ^~~~~
knapsack.cpp:23:9: error: ‘items’ was not declared in this scope
23 | items[ai] = (make_pair(a*conj,b*conj));ai++;}
| ^~~~~
knapsack.cpp:27:24: error: ‘items’ was not declared in this scope
27 | for(int i = 0; i < items.size(); i++){
| ^~~~~