Accepted

foo.cc: In function 'int isleapyear(int&)':
foo.cc:6:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    6 |  if ((y % 4) == 0 && (y % 100) != 0 || y % 400 == 0)
      |      ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc: In function 'int isleapyear(int&, int&)':
foo.cc:16:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   16 |   if ((i % 4) == 0 && (i % 100) != 0 || i % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc: In constructor 'Person::Person(std::string, int*, int*)':
foo.cc:71:9: warning: 'Person::name' will be initialized after [-Wreorder]
   71 |  string name;
      |         ^~~~
foo.cc:70:7: warning:   'Date Person::birth' [-Wreorder]
   70 |  Date birth, leave;
      |       ^~~~~
foo.cc:73:2: warning:   when initialized here [-Wreorder]
   73 |  Person(string name, int a[], int b[]) :name(name), birth(a), leave(b) { cout << "Person is Constructed: " << name << endl; }
      |  ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 384.0 KiB
#2 Accepted 6ms 384.0 KiB
#3 Accepted 5ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1138 OO9-1 组合了日期类的人类的一生
语言
C++
递交时间
2022-05-16 20:50:22
评测时间
2022-05-16 20:50:22
评测机
分数
100
总耗时
25ms
峰值内存
384.0 KiB