foo.cc: In function 'int main()':
foo.cc:27:21: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[120]' [-Wformat=]
27 | scanf("%s",&matrix[i]);
| ~^ ~~~~~~~~~~
| | |
| | char (*)[120]
| char*
foo.cc:25:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d%d",&n, &d);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:27:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%s",&matrix[i]);
| ~~~~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务