/in/foo.cc: In member function 'void Person::printInfo() const':
/in/foo.cc:34:45: error: 'int Date::year_' is private within this context
std::cout << name_ << ' ' << birth_.year_ << '-' << birth_.month_ << '-' << birth_.day_
^~~~~
/in/foo.cc:17:9: note: declared private here
int year_, month_, day_;
^~~~~
/in/foo.cc:34:68: error: 'int Date::month_' is private within this context
std::cout << name_ << ' ' << birth_.year_ << '-' << birth_.month_ << '-' << birth_.day_
^~~~~~
/in/foo.cc:17:16: note: declared private here
int year_, month_, day_;
^~~~~~
/in/foo.cc:34:92: error: 'int Date::day_' is private within this context
std::cout << name_ << ' ' << birth_.year_ << '-' << birth_.month_ << '-' << birth_.day_
^~~~
/in/foo.cc:17:24: note: declared private here
int year_, month_, day_;
^~~~
/in/foo.cc:35:36: error: 'int Date::year_' is private within this context
<< ' ' << leave_.year_ << '-' << leave_.month_ << '-' << leave_.day_ << std::endl;
^~~~~
/in/foo.cc:17:9: note: declared private here
int year_, month_, day_;
^~~~~
/in/foo.cc:35:59: error: 'int Date::month_' is private within this context
<< ' ' << leave_.year_ << '-' << leave_.month_ << '-' << leave_.day_ << std::endl;
^~~~~~
/in/foo.cc:17:16: note: declared private here
int year_, month_, day_;
^~~~~~
/in/foo.cc:35:83: error: 'int Date::day_' is private within this context
<< ' ' << leave_.year_ << '-' << leave_.month_ << '-' << leave_.day_ << std::endl;
^~~~
/in/foo.cc:17:24: note: declared private here
int year_, month_, day_;
^~~~
/in/foo.cc: In function 'bool comparePersonAge(const Person&, const Person&)':
/in/foo.cc:47:14: error: 'Date Person::birth_' is private within this context
return a.birth_.year_ < b.birth_.year_ ||
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:47:21: error: 'int Date::year_' is private within this context
return a.birth_.year_ < b.birth_.year_ ||
^~~~~
/in/foo.cc:17:9: note: declared private here
int year_, month_, day_;
^~~~~
/in/foo.cc:47:31: error: 'Date Person::birth_' is private within this context
return a.birth_.year_ < b.birth_.year_ ||
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:47:38: error: 'int Date::year_' is private within this context
return a.birth_.year_ < b.birth_.year_ ||
^~~~~
/in/foo.cc:17:9: note: declared private here
int year_, month_, day_;
^~~~~
/in/foo.cc:48:15: error: 'Date Person::birth_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:48:22: error: 'int Date::year_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~
/in/foo.cc:17:9: note: declared private here
int year_, month_, day_;
^~~~~
/in/foo.cc:48:33: error: 'Date Person::birth_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:48:40: error: 'int Date::year_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~
/in/foo.cc:17:9: note: declared private here
int year_, month_, day_;
^~~~~
/in/foo.cc:48:52: error: 'Date Person::birth_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:48:59: error: 'int Date::month_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~~
/in/foo.cc:17:16: note: declared private here
int year_, month_, day_;
^~~~~~
/in/foo.cc:48:70: error: 'Date Person::birth_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:48:77: error: 'int Date::month_' is private within this context
(a.birth_.year_ == b.birth_.year_ && (a.birth_.month_ < b.birth_.month_ ||
^~~~~~
/in/foo.cc:17:16: note: declared private here
int year_, month_, day_;
^~~~~~
/in/foo.cc:49:52: error: 'Date Person::birth_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:49:59: error: 'int Date::month_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~~~
/in/foo.cc:17:16: note: declared private here
int year_, month_, day_;
^~~~~~
/in/foo.cc:49:71: error: 'Date Person::birth_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:49:78: error: 'int Date::month_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~~~
/in/foo.cc:17:16: note: declared private here
int year_, month_, day_;
^~~~~~
/in/foo.cc:49:90: error: 'Date Person::birth_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~~~
/in/foo.cc:40:10: note: declared private here
Date birth_, leave_;
^~~~~~
/in/foo.cc:49:97: error: 'int Date::day_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~
/in/foo.cc:17:24: note: declared private here
int year_, month_, day_;
^~~~
/in/foo.cc:49:106: error: 'Date Person::birth_' is private within this context
(a.birth_.month_ == b.birth_.month_ && a.birth_.day_ < b.birth_.day_)));
^~~~~