初始化列表写法不对,多了{},要写成:
Mix(Point p, double a, double b):Rectangle(p,a,b), Ellipse(p,a,b){}
最后的{}是Mix构造函数的括号,调用父类构造函数不需要括号。