class some_class{public: void set_b(const int &new_b) { b = new_b; } private: int a = 5; int b;}
Standard input is empty
prog.cpp:9:1: error: expected ‘;’ after class definition } ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!