Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(n%4==0&&n%100!=0||n%400!=0)
     ~~~~~~^~~~~~~~~~
/in/foo.cc:6:8: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  if(n%4==0&&n%100!=0||n%400!=0)
     ~~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 428.0 KiB
#2 Accepted 2ms 1.23 MiB
#3 Wrong Answer 1ms 336.0 KiB
#4 Accepted 1ms 328.0 KiB
#5 Wrong Answer 1ms 332.0 KiB

信息

递交者
类型
递交
题目
P1001 判断闰年
语言
C++
递交时间
2024-12-22 19:12:10
评测时间
2024-12-22 19:12:10
评测机
分数
40
总耗时
8ms
峰值内存
1.23 MiB