Problem | 01knapsack |
---|---|
User | Schzeey2 |
Submission Time | 2023-11-21 19:25:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:23:25: error: cannot convert ‘long long int*’ to ‘int*’
23 | cout << knapSack(w, wt, val, n);
| ^~
| |
| long long int*
01knapsack.cpp:4:25: note: initializing argument 2 of ‘int knapSack(int, int*, int*, int)’
4 | int knapSack(int W, int wt[], int val[], int n) {
| ~~~~^~~~