Accepted
/in/foo.cc: In function 'int leap(int)':
/in/foo.cc:11:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
11 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
19 | for(int i=1;i<m;i++)
| ^~~
/in/foo.cc:21:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
21 | sum+=d;
| ^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1030 A1-4 分支结构练习:今年过去了多少天
- 语言
- C++
- 递交时间
- 2026-01-17 18:17:56
- 评测时间
- 2026-01-17 18:17:56
- 评测机
- 分数
- 100
- 总耗时
- 9ms
- 峰值内存
- 532.0 KiB