Main.cpp: In function 'int solve(int, int, int, int)':
Main.cpp:18:36: error: invalid types 'int[int]' for array subscript
18 | return dp[l][r][rem1][rem2][t] = min(solve(l + 1, r, rem1, rem2 - (x[l] == 'C'), 0), solve(l, r - 1, rem1, rem2 - (x[r] == 'C'), 0));
| ^
Main.cpp:18:91: error: too many arguments to function 'int solve(int, int, int, int)'
18 | return dp[l][r][rem1][rem2][t] = min(solve(l + 1, r, rem1, rem2 - (x[l] == 'C'), 0), solve(l, r - 1, rem1, rem2 - (x[r] == 'C'), 0));
| ^
Main.cpp:8:5: note: declared here
8 | int solve(int l, int r, int rem1, int t)
| ^~~~~
Main.cpp:18:139: error: too many arguments to function 'int solve(int, int, int, int)'
18 | return dp[l][r][rem1][rem2][t] = min(solve(l + 1, r, rem1, rem2 - (x[l] == 'C'), 0), solve(l, r - 1, rem1, rem2 - (x[r] == 'C'), 0));
| ^
Main.cpp:8:5: note: declared here
8 | int solve(int l, int r, int rem1, int t)
| ^~~~~
Main.cpp:20:36: error: invalid types 'int[int]' for array subscript
20 | return dp[l][r][rem1][rem2][t] = max(solve(l + 1, r, rem1 - (x[l] == 'C'), rem2, 1), solve(l, r - 1, rem1 - (x[r] == 'C'), rem2, 1));
| ^
Main.cpp:20:91: error: too many arguments to function 'int solve(int, int, int, int)'
20 | return dp[l][r][rem1][rem2][t] = max(solve(l + 1, r, rem1 - (x[l] == 'C'), rem2, 1), solve(l, r - 1, rem1 - (x[r] == 'C'), rem2, 1));
| ^
Main.cpp:8:5: note: declared here
8 | int solve(int l, int r, int rem1, int t)
| ^~~~~
Main.cpp:20:139: error: too many arguments to function 'int solve(int, int, int, int)'
20 | return dp[l][r][rem1][rem2][t] = max(solve(l + 1, r, rem1 - (x[l] == 'C'), rem2, 1), solve(l, r - 1, rem1 - (x[r] == 'C'), rem2, 1));
| ^
Main.cpp:8:5: note: declared here
8 | int solve(int l, int r, int rem1, int t)
| ^~~~~