Test: init_order.cpp init_order.cpp:18:6: error: expected ';' after class definition 18 | } | ^ | ; 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:12:9: error: 'x_' was not declared in this scope; did you mean 'x'? 12 | x_ = x * scale_; | ^~ | x init_order.cpp:13:9: error: 'y_' was not declared in this scope; did you mean 'y'? 13 | y_ = y * scale_; | ^~ | y init_order.cpp: At global scope: init_order.cpp:20:18: error: non-member function 'void print()' cannot have cv-qualifier 20 | void print() const { | ^~~~~ init_order.cpp: In function 'void print()': init_order.cpp:21:34: error: 'x_' was not declared in this scope 21 | std::cout << "Point(" << x_ << ", " << y_ << ") scale=" << scale_ << std::endl; | ^~ init_order.cpp:21:48: error: 'y_' was not declared in this scope 21 | std::cout << "Point(" << x_ << ", " << y_ << ") scale=" << scale_ << std::endl; | ^~ init_order.cpp:21:68: error: 'scale_' was not declared in this scope 21 | std::cout << "Point(" << x_ << ", " << y_ << ") scale=" << scale_ << std::endl; | ^~~~~~ init_order.cpp: At global scope: init_order.cpp:24:1: error: expected unqualified-id before 'private' 24 | private: | ^~~~~~~ init_order.cpp:28:1: error: expected declaration before '}' token 28 | }; | ^ init_order.cpp: In function 'int main()': init_order.cpp:33:7: error: 'class Point' has no member named 'print' 33 | p.print(); | ^~~~~