Problem | football |
---|---|
User | Hhw48 |
Submission Time | 2024-01-12 01:17:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
football.cpp: In function ‘long long int memo(long long int, long long int)’:
football.cpp:11:17: error: invalid types ‘long long int[long long int]’ for array subscript
11 | if(dp[curr][idx] != -1)return dp[curr][idx];
| ^
football.cpp:11:44: error: invalid types ‘long long int[long long int]’ for array subscript
11 | if(dp[curr][idx] != -1)return dp[curr][idx];
| ^
football.cpp:12:21: error: invalid types ‘long long int[long long int]’ for array subscript
12 | return dp[curr][idx]=max({arr[curr],memo(curr,idx-1),(memo(idx,idx-1)-(curr-idx)*k[curr])});
| ^