foo.c: In function 'main':
foo.c:5:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
5 | scanf("%d %d", &n, &k);
| ~^ ~~
| | |
| int * long int *
| %ld
foo.c:5:20: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
5 | scanf("%d %d", &n, &k);
| ~^ ~~
| | |
| int * long int *
| %ld
foo.c:16:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
16 | printf("%d", time);
| ~^ ~~~~
| | |
| int long int
| %ld
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务