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