vim.cpp: In function 'int main()':
vim.cpp:30:13: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | f[0][s[1]] = 0;
| ~~~^
vim.cpp:37:52: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | f[i][j] = min(f[i][j], g[i - 1][s[i]][j]);
| ~~~^
vim.cpp:39:52: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | f[i][j] = min(f[i][j], min(f[i - 1][s[i]], g[i - 1][s[i]][s[i]]) + 2);
| ~~~^
vim.cpp:39:68: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | f[i][j] = min(f[i][j], min(f[i - 1][s[i]], g[i - 1][s[i]][s[i]]) + 2);
| ~~~^
vim.cpp:39:74: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | f[i][j] = min(f[i][j], min(f[i - 1][s[i]], g[i - 1][s[i]][s[i]]) + 2);
| ~~~^
vim.cpp:45:82: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | g[i][j][k] = min(g[i][j][k], min(f[i - 1][j], g[i - 1][j][s[i]]) + 3);
| ~~~^
vim.cpp:48:62: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | g[i][j][k] = min(g[i][j][k], g[i - 1][s[i]][k] + 3);
| ~~~^
vim.cpp:50:62: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | g[i][j][k] = min(g[i][j][k], min(f[i - 1][s[i]], g[i - 1][s[i]][s[i]]) + 5);
| ~~~^
vim.cpp:50:78: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | g[i][j][k] = min(g[i][j][k], min(f[i - 1][s[i]], g[i - 1][s[i]][s[i]]) + 5);
| ~~~^
vim.cpp:50:84: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | g[i][j][k] = min(g[i][j][k], min(f[i - 1][s[i]], g[i - 1][s[i]][s[i]]) + 5);
| ~~~^