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