Accepted
foo.c: In function ‘main’: foo.c:8:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 8 | if (y%4==0&&y%100!=0||y%400==0) | ~~~~~~^~~~~~~~~~ foo.c:92:10: warning: ‘days’ may be used uninitialized [-Wmaybe-uninitialized] 92 | printf("%d",days); | ^~~~~~~~~~~~~~~~~ foo.c:4:15: note: ‘days’ was declared here 4 | int y,m,d,days; | ^~~~
信息
- 递交者
- 类型
- 递交
- 题目
- A1-4 分支结构练习:今年过去了多少天
- 比赛
- 南师大(含泰州学院)2024年新生赛(第一场)
- 语言
- C
- 递交时间
- 2024-08-17 15:59:24
- 评测时间
- 2024-08-17 15:59:24
- 评测机
- 分数
- 100
- 总耗时
- 7ms
- 峰值内存
- 324.0 KiB