genetics.cpp: In function 'int main()':
genetics.cpp:21:22: warning: array subscript has type 'char' [-Wchar-subscripts]
c[s[i][j]][j] = (c[s[i][j]][j] + t) % Q;
^
genetics.cpp:21:39: warning: array subscript has type 'char' [-Wchar-subscripts]
c[s[i][j]][j] = (c[s[i][j]][j] + t) % Q;
^
genetics.cpp:31:41: warning: array subscript has type 'char' [-Wchar-subscripts]
t = (t + c[0][j] - c[s[i][j]][j] + Q) % Q;
^
genetics.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &k);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
genetics.cpp:17:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s[i]);
~~~~~^~~~~~~~~~~~