Wrong Answer

foo.cc: In function 'int isLeapYear(int)':
foo.cc:7:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    7 |  return year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:49:19: warning: unused variable 'j' [-Wunused-variable]
   49 |  int year, month, j = 0;
      |                   ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1,,,2,,,3,,,4,,,5,,,6,,,7, expect 1,,,2,,,3,,,4,,,5,,,6,,,7. 2ms 384.0 KiB
#2 Wrong Answer Read 1,,,2,,,3,,,4,,,5,,,6,,,7, expect 1,,,2,,,3,,,4,,,5,,,6,,,7. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1076 打印年历
语言
C++
递交时间
2022-07-15 20:37:48
评测时间
2022-07-15 20:37:48
评测机
分数
0
总耗时
4ms
峰值内存
384.0 KiB