Wrong Answer
foo.cc: In function ‘bool leap(int)’: foo.cc:6:18: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 6 | if(y%4==0&&y%100!=0||y%400==0)return true; | ~~~~~~^~~~~~~~~~ foo.cc: In function ‘int main()’: foo.cc:29:9: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 29 | while(day>365+leap(y)); | ^~~~~ foo.cc:30:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 30 | { | ^
信息
- 递交者
- 类型
- 递交
- 题目
- P2691 一万天以后的日期(函数)
- 语言
- C++
- 递交时间
- 2025-07-20 09:05:43
- 评测时间
- 2025-07-20 09:05:43
- 评测机
- 分数
- 0
- 总耗时
- 25ms
- 峰值内存
- 504.0 KiB