Problem 01knapsack
User christal
Submission Time 2023-12-23 15:19:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:5:49: error: a function-definition is not allowed here before ‘{’ token
5 | int knapsack(vector<int> w,vector<int> v,int W){
| ^
01knapsack.cpp:26:15: error: a function-definition is not allowed here before ‘{’ token
26 | int main(void){
| ^
01knapsack.cpp:31:1: error: expected ‘}’ at end of input
31 | }
| ^
01knapsack.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^