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