RST.cpp: In function 'void init()':
RST.cpp:21:47: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[i][j] = (2ll * sum[i-1][j] - arr[str[i]][j] + mod) % mod;
^
RST.cpp:22:14: warning: array subscript has type 'char' [-Wchar-subscripts]
arr[str[i]][j] = sum[i-1][j];
^
RST.cpp:31:26: warning: array subscript has type 'char' [-Wchar-subscripts]
del[i][j] = arr[str[i]][j];
^
RST.cpp:32:14: warning: array subscript has type 'char' [-Wchar-subscripts]
arr[str[i]][j] = (2ll * arr[str[i]][j] - del[i-1][j] + mod) % mod;
^
RST.cpp:32:38: warning: array subscript has type 'char' [-Wchar-subscripts]
arr[str[i]][j] = (2ll * arr[str[i]][j] - del[i-1][j] + mod) % mod;
^
RST.cpp: In function 'int main()':
RST.cpp:54:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %d",str + 1,&q);
^
RST.cpp:60:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d",&a[0],&b[0],&c0,&c1,&c2);
^