miners.cpp: In function 'int main()':
miners.cpp:39:46: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[i][i1][3*j1+k1] = max(dp[i+1][va[s[i]]][3*j1+k1] + co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][j1][3*va[s[i]]+i1] + co[k1][j1][va[s[i+1]]]);
| ^
miners.cpp:39:74: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[i][i1][3*j1+k1] = max(dp[i+1][va[s[i]]][3*j1+k1] + co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][j1][3*va[s[i]]+i1] + co[k1][j1][va[s[i+1]]]);
| ^
miners.cpp:39:86: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[i][i1][3*j1+k1] = max(dp[i+1][va[s[i]]][3*j1+k1] + co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][j1][3*va[s[i]]+i1] + co[k1][j1][va[s[i+1]]]);
| ^
miners.cpp:39:111: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[i][i1][3*j1+k1] = max(dp[i+1][va[s[i]]][3*j1+k1] + co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][j1][3*va[s[i]]+i1] + co[k1][j1][va[s[i+1]]]);
| ^
miners.cpp:39:139: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | dp[i][i1][3*j1+k1] = max(dp[i+1][va[s[i]]][3*j1+k1] + co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][j1][3*va[s[i]]+i1] + co[k1][j1][va[s[i+1]]]);
| ^
miners.cpp:42:38: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | dp[i][i1][9] = max(dp[i+1][va[s[i]]][9]+co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][va[s[i+1]]][3*va[s[i]]+i1]+1);
| ^
miners.cpp:42:58: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | dp[i][i1][9] = max(dp[i+1][va[s[i]]][9]+co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][va[s[i+1]]][3*va[s[i]]+i1]+1);
| ^
miners.cpp:42:70: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | dp[i][i1][9] = max(dp[i+1][va[s[i]]][9]+co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][va[s[i+1]]][3*va[s[i]]+i1]+1);
| ^
miners.cpp:42:91: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | dp[i][i1][9] = max(dp[i+1][va[s[i]]][9]+co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][va[s[i+1]]][3*va[s[i]]+i1]+1);
| ^
miners.cpp:42:103: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | dp[i][i1][9] = max(dp[i+1][va[s[i]]][9]+co[i1][va[s[i]]][va[s[i+1]]], dp[i+1][va[s[i+1]]][3*va[s[i]]+i1]+1);
| ^
miners.cpp:45:25: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | cout << 1+dp[0][va[s[0]]][9];
| ^