prog.cpp:10: error: ISO C++ forbids declaration of ‘Room’ with no type
prog.cpp:10: error: expected ‘;’ before ‘*’ token
prog.cpp: In destructor ‘House::~House()’:
prog.cpp:21: error: ‘room’ was not declared in this scope
prog.cpp: In member function ‘void House::setRoom(int)’:
prog.cpp:47: error: ‘room’ was not declared in this scope
prog.cpp:47: error: expected type-specifier before ‘Room’
prog.cpp:47: error: expected `;' before ‘Room’
prog.cpp: In member function ‘void House::DisplayHouse()’:
prog.cpp:66: error: ‘room’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:210: error: expected `}' at end of input
prog.cpp: In constructor ‘Town::Town(std::string)’:
prog.cpp:85: error: no matching function for call to ‘Town::Town()’
prog.cpp:77: note: candidates are: Town::Town(std::string)
prog.cpp:69: note: Town::Town(const Town&)
prog.cpp: In member function ‘void Town::Addhouse(House, int)’:
prog.cpp:110: warning: suggest parentheses around assignment used as truth value
prog.cpp: In member function ‘void Town::HomeArea(int)’:
prog.cpp:157: error: ‘class House’ has no member named ‘room’
prog.cpp: In member function ‘void Town::DisplayTowm()’:
prog.cpp:162: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&Town::getNameTown’
prog.cpp: In member function ‘void Town::Room::DisplayRoom()’:
prog.cpp:203: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&Town::Room::getnameroom’
prog.cpp:204: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&Town::Room::getArea’
prog.cpp: At global scope:
prog.cpp:210: error: expected unqualified-id at end of input