记录详情

Compile Error

/in/foo.cc:8:15: error: 'm' has not been declared
  Date(int y=0,m=0,d=0):year(y),month(m),day(d)
               ^
/in/foo.cc:8:19: error: 'd' has not been declared
  Date(int y=0,m=0,d=0):year(y),month(m),day(d)
                   ^
/in/foo.cc: In constructor 'Date::Date(int, int, int)':
/in/foo.cc:8:38: error: 'm' was not declared in this scope
  Date(int y=0,m=0,d=0):year(y),month(m),day(d)
                                      ^
/in/foo.cc:8:45: error: 'd' was not declared in this scope
  Date(int y=0,m=0,d=0):year(y),month(m),day(d)
                                             ^
/in/foo.cc: In member function 'int Date::isLeapYear(int)':
/in/foo.cc:12:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(year%400==0||year%4==0&&year%100!=0)
                   ~~~~~~~~~^~~~~~~~~~~~~

信息

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