记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %c %d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
foo.c:12:9: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
   12 |         printf("%d%c%d=%d", a, b, c, d);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/store/dpxy5cr7cm0nch0qvq2qygs9jwnmhiy5-binutils-2.38/bin/ld: /tmp/ccO5o3dv.o: in function `main':
foo.c:(.text.startup+0x1c): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
3-5 计算器
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 19:39:19
评测时间
2022-08-15 19:39:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes