foo.cc: In function 'void init()':
foo.cc:29:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[111]' [-Wformat=]
29 | scanf("%s",&st[i]);
| ~^ ~~~~~~
| | |
| | char (*)[111]
| char*
foo.cc:26:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:29:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%s",&st[i]);
| ~~~~~^~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务