Problem knapsack
User Daddy
Submission Time 2023-11-10 13:52:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knapsack.cpp: In function ‘int maximizeValue(int, int, std::vector<std::tuple<int, int, int> >&)’:
knapsack.cpp:41:12: error: a function-definition is not allowed here before ‘{’ token
41 | int main() {
| ^
knapsack.cpp:63:5: error: expected ‘;’ before numeric constant
63 | 1234 1
| ^~
| ;
knapsack.cpp:64:13: error: expected ‘}’ at end of input
64 | 276543 1000 45572356
| ^~~~~~~~
knapsack.cpp:10:65: note: to match this ‘{’
10 | int maximizeValue(int s,int n,vector<tuple<int,int,int>>&items) {
| ^