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)提供评测服务