记录详情

Wrong Answer

/in/foo.cc: In member function 'bool DateTime::isLeapyear()':
/in/foo.cc:18:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(year%400==0||year%4==0&&year%100!=0)
                   ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:21:9: warning: statement has no effect [-Wunused-value]
    false;      
         ^
/in/foo.cc: In function 'void count(DateTime&, int)':
/in/foo.cc:31:6: warning: unused variable 'flag' [-Wunused-variable]
  int flag;
      ^~~~
/in/foo.cc: In member function 'bool DateTime::isLeapyear()':
/in/foo.cc:22:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 200.0 KiB
#2 Wrong Answer 1ms 200.0 KiB
#3 Wrong Answer 2ms 204.0 KiB
#4 Wrong Answer 3ms 200.0 KiB
#5 Accepted 1ms 200.0 KiB

信息

递交者
类型
递交
题目
P1007 OO1-5 日期时间类DateTime
语言
C++
递交时间
2019-03-31 18:28:28
评测时间
2019-03-31 18:28:28
评测机
分数
20
总耗时
10ms
峰值内存
204.0 KiB