记录详情

Compile Error

foo.cc: In function 'bool IsLeapYear(int)':
foo.cc:8:29: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  if(n%400==0||(n%100!=0&&n&4==0))
                            ~^~~
foo.cc: In function 'int main()':
foo.cc:72:7: error: no matching function for call to 'Time::Time()'
  Time time1;
       ^~~~~
foo.cc:19:2: note: candidate: Time::Time(int, int, int)
  Time (int y,int m,int d)
  ^~~~
foo.cc:19:2: note:   candidate expects 3 arguments, 0 provided
foo.cc:13:7: note: candidate: constexpr Time::Time(const Time&)
 class Time
       ^~~~
foo.cc:13:7: note:   candidate expects 1 argument, 0 provided
foo.cc:13:7: note: candidate: constexpr Time::Time(Time&&)
foo.cc:13:7: note:   candidate expects 1 argument, 0 provided
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1003 OO1-3 日期类Date
语言
C++
递交时间
2021-07-09 23:52:02
评测时间
2021-07-09 23:52:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes