记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:5:9: warning: zero-length gnu_printf format string [-Wformat-zero-length]
    5 |  printf("");
      |         ^~
foo.c:19:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |   case 2:if((year%4==0)&&(year%100!=0)||year%400==0){
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.c:6:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |    scanf("%d%d",&year,&month);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read year=2000,month=..., expect 29. 3ms 256.0 KiB
#2 Wrong Answer Read year=2001,month=..., expect 28. 2ms 384.0 KiB
#3 Wrong Answer Read year=2100,month=..., expect 28. 1ms 256.0 KiB
#4 Wrong Answer Read year=2000,month=..., expect 30. 1ms 256.0 KiB
#5 Wrong Answer Read year=2018,month=..., expect 31. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
C语言课程设计考试
语言
C
递交时间
2022-05-31 11:17:36
评测时间
2022-05-31 11:17:36
评测机
分数
0
总耗时
10ms
峰值内存
384.0 KiB