记录详情

Accepted

foo.c: In function ‘ct’:
foo.c:2:5: warning: type of ‘year’ defaults to ‘int’ [-Wimplicit-int]
    2 | int ct(year,month)
      |     ^~
foo.c:2:5: warning: type of ‘month’ defaults to ‘int’ [-Wimplicit-int]
foo.c:6:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    6 |                 if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)//判断是否为闰年
      |                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
foo.c:26:1: warning: control reaches end of non-void function [-Wreturn-type]
   26 | }
      | ^
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 1ms 288.0 KiB
#4 Accepted 1ms 552.0 KiB
#5 Accepted 1ms 288.0 KiB

信息

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