-the struct must be declared outside of the main() EDIT: pre c++11 whoops
-you can not cout date.birth, because you don't have an object called 'date' (also, even if you did, you'd have to override the '<<' operator).
Instead, write cout << date_birth.year << "." << date_birth.month << "." << date_birth.date << "." << endl;
What are you trying to print? You have no class called date with a member birth, so perhaps you meant an _? It which case you simply output an entire structure like that; you'll need to output the individual elements or overload the << operator.