match.cpp: In function 'void solve(int, int)':
match.cpp:10:20: warning: array subscript has type 'char' [-Wchar-subscripts]
int T = dt[E][a[S]];
^
match.cpp: In function 'int main()':
match.cpp:27:28: warning: array subscript has type 'char' [-Wchar-subscripts]
if(i == 1 || dt[i-1][a[i]] < 2) {
^
match.cpp:33:24: warning: array subscript has type 'char' [-Wchar-subscripts]
int T = dt[i-1][a[i]] - 1;
^
match.cpp:38:13: warning: array subscript has type 'char' [-Wchar-subscripts]
dt[i][a[i]] = i;
^
match.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",a+1);
~~~~~^~~~~~~~~~