Problem | subknapsack |
---|---|
User | ARock |
Submission Time | 2023-12-01 11:38:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subknapsack.cpp: In function ‘long long int dp(long long int, long long int, long long int)’:
subknapsack.cpp:13:18: error: invalid types ‘long long int[long long int]’ for array subscript
13 | if (memo[i][w][e]) return memo[i][w][e];
| ^
subknapsack.cpp:13:40: error: invalid types ‘long long int[long long int]’ for array subscript
13 | if (memo[i][w][e]) return memo[i][w][e];
| ^
subknapsack.cpp:22:21: error: invalid types ‘long long int[long long int]’ for array subscript
22 | return memo[i][w][e] = (dp(i-1, w, e) + dp(i-1, w-A[i], e+1)) % 998244353;
| ^