/in/foo.cc: In constructor 'Date::Date(int, int, int)':
/in/foo.cc:26:6: warning: 'Date::year' will be initialized after [-Wreorder]
int year;
^~~~
/in/foo.cc:24:6: warning: 'int Date::month' [-Wreorder]
int month;
^~~~~
/in/foo.cc:11:2: warning: when initialized here [-Wreorder]
Date(int m = 1, int d = 1, int y = 2000):year(y),month(m),day(d){}
^~~~
/in/foo.cc: In copy constructor 'Date::Date(const Date&)':
/in/foo.cc:25:6: warning: 'Date::day' will be initialized after [-Wreorder]
int day;
^~~
/in/foo.cc:24:6: warning: 'int Date::month' [-Wreorder]
int month;
^~~~~
/in/foo.cc:20:2: warning: when initialized here [-Wreorder]
Date(const Date& d) :day(d.day), month(d.month), year(d.year){}
^~~~
/in/foo.cc: In member function 'double Employee::getpay(int)':
/in/foo.cc:64:62: error: invalid use of member function 'int Date::getMonth()' (did you forget the '()' ?)
double getpay(int mouth) { return pay + (mouth == birthDate.getMonth ? 100 : 0); }
~~~~~~~~~~^~~~~~~~