Problem supperbox
User Sans12345
Submission Time 2023-11-12 21:55:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supperbox.cpp: In function ‘void precomopute(ll, ll)’:
supperbox.cpp:11:29: error: incompatible types in assignment of ‘int’ to ‘ll [2001]’ {aka ‘long long int [2001]’}
11 | if(x<C[mid]) dp[mid][x] = 0;
| ^
supperbox.cpp:12:26: error: incompatible types in assignment of ‘ll’ {aka ‘long long int’} to ‘ll [2001]’ {aka ‘long long int [2001]’}
12 | else dp[mid][x] = S[mid];
| ^
supperbox.cpp:13:33: error: incompatible types in assignment of ‘int’ to ‘ll [2001]’ {aka ‘long long int [2001]’}
13 | if(x<C[mid+1]) dp[mid+1][x] = 0;
| ^
supperbox.cpp:14:30: error: incompatible types in assignment of ‘ll’ {aka ‘long long int’} to ‘ll [2001]’ {aka ‘long long int [2001]’}
14 | else dp[mid+1][x] = S[mid+1];
| ^
supperbox.cpp:19:15: error: incompatible types in assignment of ‘int’ to ‘ll [2001]’ {aka