for (int i = 0; i < department.size(); i++) cout << typeid(*department[i]).name() << "\n";
Manager Employee Employee