Problem | 01knapsack |
---|---|
User | Craftless |
Submission Time | 2023-11-07 16:00:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
01knapsack.cpp: In function ‘long long int dp(long long int, long long int)’:
01knapsack.cpp:16:21: error: too few arguments to function ‘long long int dp(long long int, long long int)’
16 | ans = max(ans, dp())
| ^
01knapsack.cpp:13:5: note: declared here
13 | int dp(int index, int weight) {
| ^~
01knapsack.cpp: At global scope:
01knapsack.cpp:23:5: error: redefinition of ‘long long int dp(long long int, long long int)’
23 | int dp(int index, int weight) {
| ^~
01knapsack.cpp:13:5: note: ‘long long int dp(long long int, long long int)’ previously defined here
13 | int dp(int index, int weight) {
| ^~
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from 01knapsack.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h