/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:18:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   18 |         scanf_s("%d%d%d%d", &n, &m, &a, &b);
      |         ^~~~~~~
      |         scanf
foo.c:33:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
   33 |         printf("%ld",f1[n + 1][m + 1]);
      |                 ~~^  ~~~~~~~~~~~~~~~~
      |                   |           |
      |                   long int    long long int
      |                 %lld
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccgqWhNe.o: in function `main':
foo.c:(.text.startup+0x21): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C
递交时间
2023-08-13 16:24:03
评测时间
2023-08-13 16:24:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes