Problem 01knapsack
User TheInvadr
Submission Time 2023-01-11 23:24:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:29:24: error: cannot convert ‘long int*’ to ‘int*’
29 | cout<<knapSack(W,w,v,N);
| ^
| |
| long int*
01knapsack.cpp:6:35: note: initializing argument 3 of ‘int knapSack(int, int*, int*, int)’
6 | int knapSack(int W, int wt[], int val[], int n)
| ~~~~^~~~~