Accepted
foo.cc: In function 'int IsLeapYear(int)':
foo.cc:9:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(year%400==0 || year%4==0 && year%100!=0)
~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int DaysOfMonth(int, int)':
foo.cc:33:6: warning: variable 'day' set but not used [-Wunused-but-set-variable]
int day;
^~~
foo.cc:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1084 闰年、年天数、月天数-函数
- 语言
- C++
- 递交时间
- 2021-08-24 09:46:59
- 评测时间
- 2021-08-24 09:46:59
- 评测机
- 分数
- 100
- 总耗时
- 3ms
- 峰值内存
- 384.0 KiB