Test: init_order.cpp init_order.cpp:17:6: error: expected ';' after class definition 17 | } | ^ | ; init_order.cpp: In constructor 'Point::Point(double, double, double)': init_order.cpp:7:11: error: class 'Point' does not have any field named 'scale_' 7 | : scale_(scale), | ^~~~~~ init_order.cpp:8:11: error: class 'Point' does not have any field named 'x_' 8 | x_(x * scale_), | ^~ init_order.cpp:8:18: error: 'scale_' was not declared in this scope; did you mean 'scale'? 8 | x_(x * scale_), | ^~~~~~ | scale init_order.cpp:9:11: error: class 'Point' does not have any field named 'y_' 9 | y_(y * scale_) | ^~ init_order.cpp: At global scope: init_order.cpp:19:18: error: non-member function 'void print()' cannot have cv-qualifier 19 | void print() const { | ^~~~~ init_order.cpp: In function 'void print()': init_order.cpp:20:34: error: 'x_' was not declared in this scope 20 | std::cout << "Point(" << x_ << ", " << y_ << ") scale=" << scale_ << std::endl; | ^~ init_order.cpp:20:48: error: 'y_' was not declared in this scope 20 | std::cout << "Point(" << x_ << ", " << y_ << ") scale=" << scale_ << std::endl; | ^~ init_order.cpp:20:68: error: 'scale_' was not declared in this scope 20 | std::cout << "Point(" << x_ << ", " << y_ << ") scale=" << scale_ << std::endl; | ^~~~~~ init_order.cpp: At global scope: init_order.cpp:23:1: error: expected unqualified-id before 'private' 23 | private: | ^~~~~~~ init_order.cpp:27:1: error: expected declaration before '}' token 27 | }; | ^ init_order.cpp: In function 'int main()': init_order.cpp:32:7: error: 'class Point' has no member named 'print' 32 | p.print(); | ^~~~~