Can someone tell me if is there anything wrong with my code
Can someone help me with this question in c++ Assume you have a system with the followoing entities Region:Id,lan,width,int area() //zero City:id,lan,width area() Country:id,lan,width city*A //array of cities area() 1. Implement the above system using inheritance in the best possible way. Keep every object size as small as possible. Implement all methods (setter/getter/constructors and destructors) Note that the region area is 0 while the city is len*width and the country is the sum of their cities. 2. Create array of countries called Arab of 22 countries. Write a function fill that fills the array Arab 3. Write a method that finds the city that has the max area in a country 4. Write a method that sorts the cities in a country from the largest to the smallest area 5. Write a function that returns array of countries of the same area of Arab 6. Write a function that compares between two countries. It returns true if country1 area > country2 area. 7. Write a function to move a city from one country to another. https://code.sololearn.com/cLJlPq1q0BeE https://code.sololearn.com/cLJlPq1q0BeE/?ref=app Heres the question and my attempt