foo.cc: In member function 'void Time::Add1(int)':
foo.cc:25:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
25 | if (h >= 24)
| ^~
foo.cc:26:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
26 | h %= 24; flag = 1;
| ^~~~
foo.cc: In member function 'int Date::isLeap()':
foo.cc:55:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
55 | if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务