foo.cc: In function 'int main()':
foo.cc:13:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'char*' [-Wformat=]
13 | scanf("%ld%s", er_dir+i, er_occ[i]);
| ~~^ ~~~~~~~~
| | |
| long int* char*
| %hhd
foo.cc:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%ld%ld", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:13:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%ld%s", er_dir+i, er_occ[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%ld%ld", &a, &s); // 获取左右和序数
| ~~~~~^~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 20 testcases.
[Hydro](https://hydro.ac)提供评测服务