miners.cpp: In function 'int main()':
miners.cpp:53:63: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | smax(dp[nxt][vals[j][1]][vals[j][2]][mp[s[i+1]]][vals[k][0]][vals[k][1]][vals[k][2]],val+ans[vals[j][1]][vals[j][2]][mp[s[i+1]]]);
| ^
miners.cpp:53:63: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | smax(dp[nxt][vals[j][1]][vals[j][2]][mp[s[i+1]]][vals[k][0]][vals[k][1]][vals[k][2]],val+ans[vals[j][1]][vals[j][2]][mp[s[i+1]]]);
| ~~~~~~~~~^
miners.cpp:53:143: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | smax(dp[nxt][vals[j][1]][vals[j][2]][mp[s[i+1]]][vals[k][0]][vals[k][1]][vals[k][2]],val+ans[vals[j][1]][vals[j][2]][mp[s[i+1]]]);
| ^
miners.cpp:53:143: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | smax(dp[nxt][vals[j][1]][vals[j][2]][mp[s[i+1]]][vals[k][0]][vals[k][1]][vals[k][2]],val+ans[vals[j][1]][vals[j][2]][mp[s[i+1]]]);
| ~~~~~~~~~^
miners.cpp:55:99: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | smax(dp[nxt][vals[j][0]][vals[j][1]][vals[j][2]][vals[k][1]][vals[k][2]][mp[s[i+1]]],val+ans[vals[k][1]][vals[k][2]][mp[s[i+1]]]);
| ^
miners.cpp:55:99: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | smax(dp[nxt][vals[j][0]][vals[j][1]][vals[j][2]][vals[k][1]][vals[k][2]][mp[s[i+1]]],val+ans[vals[k][1]][vals[k][2]][mp[s[i+1]]]);
| ~~~~~~~~~^
miners.cpp:55:143: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | smax(dp[nxt][vals[j][0]][vals[j][1]][vals[j][2]][vals[k][1]][vals[k][2]][mp[s[i+1]]],val+ans[vals[k][1]][vals[k][2]][mp[s[i+1]]]);
| ^
miners.cpp:55:143: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | smax(dp[nxt][vals[j][0]][vals[j][1]][vals[j][2]][vals[k][1]][vals[k][2]][mp[s[i+1]]],val+ans[vals[k][1]][vals[k][2]][mp[s[i+1]]]);
| ~~~~~~~~~^
miners.cpp:57:71: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | smax(res,dp[nxt][vals[j][1]][vals[j][2]][mp[s[i+1]]][vals[k][0]][vals[k][1]][vals[k][2]]);
| ^
miners.cpp:57:71: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | smax(res,dp[nxt][vals[j][1]][vals[j][2]][mp[s[i+1]]][vals[k][0]][vals[k][1]][vals[k][2]]);
| ~~~~~~~~~^
miners.cpp:58:107: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | smax(res,dp[nxt][vals[j][0]][vals[j][1]][vals[j][2]][vals[k][1]][vals[k][2]][mp[s[i+1]]]);
| ^
miners.cpp:58:107: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | smax(res,dp[nxt][vals[j][0]][vals[j][1]][vals[j][2]][vals[k][1]][vals[k][2]][mp[s[i+1]]]);
| ~~~~~~~~~^