Test: init_order.cpp init_order.cpp:33:2: error: expected '}' at end of input 33 | } | ^ init_order.cpp:4:13: note: to match this '{' 4 | class Point { | ^ init_order.cpp: In constructor 'Point::Point(double, double, double)': init_order.cpp:6:47: error: class 'Point' does not have any field named 'x_' 6 | Point(double x, double y, double scale) : x_(x * scale), y_(y * scale), scale_(scale) { | ^~ init_order.cpp:6:62: error: class 'Point' does not have any field named 'y_' 6 | Point(double x, double y, double scale) : x_(x * scale), y_(y * scale), scale_(scale) { | ^~ init_order.cpp:6:77: error: class 'Point' does not have any field named 'scale_' 6 | Point(double x, double y, double scale) : x_(x * scale), y_(y * scale), scale_(scale) { | ^~~~~~ init_order.cpp:7:9: error: expected primary-expression before ':' token 7 | : scale_(scale), | ^ init_order.cpp:16:24: error: a function-definition is not allowed here before '{' token 16 | void print() const { | ^ init_order.cpp:20:1: error: expected primary-expression before 'private' 20 | private: | ^~~~~~~ init_order.cpp: In member function 'int Point::main()': init_order.cpp:29:7: error: 'class Point' has no member named 'print' 29 | p.print(); | ^~~~~ init_order.cpp: At global scope: init_order.cpp:33:2: error: expected unqualified-id at end of input 33 | } | ^