记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:21:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (year%4==0&&year%100!=0||year%400==0)
      ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c:63:128: warning: statement with no effect [-Wunused-value]
     day10=day+month_day[0]+month_day[1]+month_day[2]+month_day[3]+month_day[4]+month_day[5]+month_day[6]+month_day[7];month_day[8];
                                                                                                                       ~~~~~~~~~^~~
/in/foo.c:67:131: warning: statement with no effect [-Wunused-value]
     day11=day+month_day[0]+month_day[1]+month_day[2]+month_day[3]+month_day[4]+month_day[5]+month_day[6]+month_day[7];month_day[8]+month_day[9];
                                                                                                                       ~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c:71:144: warning: statement with no effect [-Wunused-value]
     day12=day+month_day[0]+month_day[1]+month_day[2]+month_day[3]+month_day[4]+month_day[5]+month_day[6]+month_day[7];month_day[8]+month_day[9]+month_day[10];
                                                                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.c:118:128: warning: statement with no effect [-Wunused-value]
     day10=day+month_day[0]+month_day[1]+month_day[2]+month_day[3]+month_day[4]+month_day[5]+month_day[6]+month_day[7];month_day[8];
                                                                                                                       ~~~~~~~~~^~~
/in/foo.c:122:131: warning: statement with no effect [-Wunused-value]
     day11=day+month_day[0]+month_day[1]+month_day[2]+month_day[3]+month_day[4]+month_day[5]+month_day[6]+month_day[7];month_day[8]+month_day[9];
                                                                                                                       ~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c:126:144: warning: statement with no effect [-Wunused-value]
     day12=day+month_day[0]+month_day[1]+month_day[2]+month_day[3]+month_day[4]+month_day[5]+month_day[6]+month_day[7];month_day[8]+month_day[9]+month_day[10];
                                                                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 236.0 KiB
#2 Accepted 0ms 260.0 KiB
#3 Wrong Answer 0ms 248.0 KiB
#4 Wrong Answer 0ms 212.0 KiB
#5 Wrong Answer 0ms 220.0 KiB

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-15 09:01:06
评测时间
2024-08-15 09:01:06
评测机
分数
40
总耗时
3ms
峰值内存
260.0 KiB