miners.cpp: In function 'int rec(int, char, char, char, char)':
miners.cpp:15:17: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | if (dp[pos][last_l][plast_l][last_r][plast_r] != -1)
| ^~~~~~
miners.cpp:15:25: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | if (dp[pos][last_l][plast_l][last_r][plast_r] != -1)
| ^~~~~~~
miners.cpp:15:34: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | if (dp[pos][last_l][plast_l][last_r][plast_r] != -1)
| ^~~~~~
miners.cpp:15:42: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | if (dp[pos][last_l][plast_l][last_r][plast_r] != -1)
| ^~~~~~~
miners.cpp:17:24: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~
miners.cpp:17:32: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~~
miners.cpp:17:41: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~
miners.cpp:17:49: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~~
miners.cpp:28:13: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | dp[pos][last_l][plast_l][last_r][plast_r] = rec(pos+1, arr[pos], last_l, last_r, plast_r) + inc;
| ^~~~~~
miners.cpp:28:21: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | dp[pos][last_l][plast_l][last_r][plast_r] = rec(pos+1, arr[pos], last_l, last_r, plast_r) + inc;
| ^~~~~~~
miners.cpp:28:30: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | dp[pos][last_l][plast_l][last_r][plast_r] = rec(pos+1, arr[pos], last_l, last_r, plast_r) + inc;
| ^~~~~~
miners.cpp:28:38: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | dp[pos][last_l][plast_l][last_r][plast_r] = rec(pos+1, arr[pos], last_l, last_r, plast_r) + inc;
| ^~~~~~~
miners.cpp:39:13: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~
miners.cpp:39:21: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~~
miners.cpp:39:30: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~
miners.cpp:39:38: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~~
miners.cpp:39:62: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~
miners.cpp:39:70: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~~
miners.cpp:39:79: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~
miners.cpp:39:87: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[pos][last_l][plast_l][last_r][plast_r] = max (dp[pos][last_l][plast_l][last_r][plast_r], rec(pos+1, last_l, plast_l, arr[pos], last_r) + inc);
| ^~~~~~~
miners.cpp:40:20: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~
miners.cpp:40:28: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~~
miners.cpp:40:37: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~
miners.cpp:40:45: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | return dp[pos][last_l][plast_l][last_r][plast_r];
| ^~~~~~~