Accepted

foo.cc: In function 'int isLeapYear(int)':
foo.cc:35:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   35 |  return year%4==0&&year%100!=0||year%400==0;
      |         ~~~~~~~~~^~~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:51:4: warning: unnecessary parentheses in declaration of 'passDays' [-Wparentheses]
   51 | int(passDays(int year,int month,int day))
      |    ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1075 打印月历
语言
C++
递交时间
2022-07-14 06:19:26
评测时间
2022-07-14 06:19:26
评测机
分数
100
总耗时
3ms
峰值内存
384.0 KiB