Accepted

foo.cc: In function 'int IsLeapYear(int)':
foo.cc:34:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   34 |  if(year%400==0 || year%4==0 && year%100!=0)
      |                    ~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:71:11: warning: unused variable 'month' [-Wunused-variable]
   71 |  int year,month,d;
      |           ^~~~~
foo.cc:71:17: warning: unused variable 'd' [-Wunused-variable]
   71 |  int year,month,d;
      |                 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 396.0 KiB

信息

递交者
类型
递交
题目
P1103 打印年历
语言
C++
递交时间
2021-12-12 12:01:15
评测时间
2021-12-12 12:01:15
评测机
分数
100
总耗时
6ms
峰值内存
396.0 KiB