./Main.cpp: In function ‘int main()’:
./Main.cpp:10:82: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[6]’ [-Wformat=]
for (int i = 0; i < H; ++i) { for (int j = 0; j < W; ++j) { scanf("%s", &S[i][j]); } }
^
./Main.cpp:9:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &H, &W);
^
./Main.cpp:10:83: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < H; ++i) { for (int j = 0; j < W; ++j) { scanf("%s", &S[i][j]); } }
^