记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d%d%d%d", &a, &b,&c,&d);
      |         ^~~~~~~
      |         scanf
foo.c:8:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    8 |         if (a == 1 || a == 3 || a == 5 || a == 7 || a == 8 || a == 10 || a == 12);
      |         ^~
foo.c:9:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    9 |          e = a * 31 + b;
      |          ^
foo.c:5:34: warning: unused variable 'h' [-Wunused-variable]
    5 |         int a, b, c, d, e, f, g, h ;
      |                                  ^
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: /tmp/cc56SHxB.o: in function `main':
foo.c:(.text.startup+0x2a): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1083 xf1-6计算日期
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 18:22:45
评测时间
2022-08-27 18:22:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes