Wrong Answer

/in/foo.cc:3:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  if(y%4==0&&y&100!=0||y%400==0)
               ~~~^~~
/in/foo.cc:8:21: warning: 'and' of mutually exclusive equal-tests is always 0
  if(y%4==0&&y&100!=0||y%400==0)
                     ^~
/in/foo.cc:8:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y%4==0&&y&100!=0||y%400==0)
     ~~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 380.0 KiB
#2 Wrong Answer 1ms 352.0 KiB
#3 Accepted 1ms 360.0 KiB
#4 Accepted 1ms 344.0 KiB
#5 Wrong Answer 1ms 344.0 KiB
#6 Accepted 1ms 344.0 KiB
#7 Wrong Answer 1ms 344.0 KiB
#8 Accepted 1ms 344.0 KiB
#9 Accepted 1ms 344.0 KiB
#10 Wrong Answer 1ms 344.0 KiB

信息

递交者
类型
递交
比赛
春季初级班GESP一级编程比赛
语言
C++
递交时间
2024-03-15 22:54:50
评测时间
2024-03-16 18:45:07
评测机
分数
60
总耗时
14ms
峰值内存
380.0 KiB