记录详情

Wrong Answer

/in/foo.cc: In member function 'void Date::DateAdd(int)':
/in/foo.cc:32:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if(isLeapYear(year)==true)
       ^
/in/foo.cc: In member function 'bool Date::isLeapYear(int)':
/in/foo.cc:49:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(year%400==0||year%4==0&&year%100!=0)
                  ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:51:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:61:14: warning: 'y' is used uninitialized in this function [-Wuninitialized]
  Date D(y,m,d);
              ^
/in/foo.cc:61:14: warning: 'm' is used uninitialized in this function [-Wuninitialized]
/in/foo.cc:61:14: warning: 'd' is used uninitialized in this function [-Wuninitialized]
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 420.0 KiB
#2 Wrong Answer 1ms 560.0 KiB
#3 Wrong Answer 1ms 208.0 KiB
#4 Wrong Answer 1ms 204.0 KiB
#5 Wrong Answer 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1003 OO1-3 日期类Date
语言
C++
递交时间
2019-03-31 14:58:43
评测时间
2019-03-31 14:58:43
评测机
分数
0
总耗时
8ms
峰值内存
560.0 KiB