foo.cc: In function 'int main()':
foo.cc:50:33: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | int AS = AC[S1[i - 1]][S] + AC[S2[i - 1]][S];
| ~~~~~~~~^
foo.cc:50:52: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | int AS = AC[S1[i - 1]][S] + AC[S2[i - 1]][S];
| ~~~~~~~~^
foo.cc:51:33: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | int DS = DC[S1[i - 1]][S] + DC[S2[i - 1]][S];
| ~~~~~~~~^
foo.cc:51:52: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | int DS = DC[S1[i - 1]][S] + DC[S2[i - 1]][S];
| ~~~~~~~~^
[Hydro](https://hydro.ac)提供评测服务