RST.cpp: In function 'void init()':
RST.cpp:30:53: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[i][j] = (2ll * sum[i-1][j] % mod - arr[str[i]][j] + mod) % mod;
^
RST.cpp:31:14: warning: array subscript has type 'char' [-Wchar-subscripts]
arr[str[i]][j] = sum[i][j];
^
RST.cpp:40:47: warning: array subscript has type 'char' [-Wchar-subscripts]
sui[i][j] = (1ll * sui[i-1][j] - arr[str[i]][j] + del[i-1][j] + mod) % mod;
^
RST.cpp:41:26: warning: array subscript has type 'char' [-Wchar-subscripts]
del[i][j] = arr[str[i]][j];
^
RST.cpp:42: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:42: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:45:45: warning: array subscript has type 'char' [-Wchar-subscripts]
sui[i][j] = (1ll * sui[i][j] + arr[str[i]][j] - del[i][j] + mod) % mod;
^
RST.cpp: In function 'int main()':
RST.cpp:63: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:70: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);
^