foo.cc: In function 'int main()':
foo.cc:24:44: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[15]' [-Wformat=]
24 | for (int i = 1; i <= n; i++) scanf("%d%s", &des[i], &occupy[i]);
| ~^ ~~~~~~~~~~
| | |
| char* char (*)[15]
foo.cc:23:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:24:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | for (int i = 1; i <= n; i++) scanf("%d%s", &des[i], &occupy[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:25:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | for (int i = 1; i <= m; i++) scanf("%d%d", &lor[i], &where[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务