记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:2: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
  scanf_s("%d%d%d",&year,&month,&day);
  ^~~~~~~
/in/foo.c:8:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (month%400==0||year%4==0&&year%100!=0){
                    ~~~~~~~~~^~~~~~~~~~~~~
/tmp/cc9bbclw.o: In function `main':
foo.c:(.text.startup+0x85): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status

信息

递交者
类型
自测
题目
A1-4 分支结构练习:今年过去了多少天
语言
C
递交时间
2024-08-19 19:52:08
评测时间
2024-08-19 19:52:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes