Problem catteams
User Rolo
Submission Time 2024-08-23 15:55:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catteams.cpp: In function ‘int main()’:
catteams.cpp:33:56: error: invalid types ‘long long int[int]’ for array subscript
33 | dp[i][j+1] = max( dp[i][j+1] ,dp[m-1][j] + abs(mx[m] - mn[m]));
| ^
catteams.cpp:33:64: error: invalid types ‘long long int[int]’ for array subscript
33 | dp[i][j+1] = max( dp[i][j+1] ,dp[m-1][j] + abs(mx[m] - mn[m]));
| ^