Fracknap
Fracknap
h>
#include <stdlib.h>
struct Item {
int weight;
int value;
};
// Initialize variables
int currentWeight = 0;
currentWeight += items[i].weight;
totalValue += items[i].value;
} else {
return totalValue;
int main() {
int n, capacity;
scanf("%d", &n);
scanf("%d", &capacity);
return 0;