fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. class P2 {
  4. protected:
  5. int x, y;
  6. public:
  7. P2(int _x=0, int _y=0): x(_x), y(_y) {};
  8. void Show() {
  9. cout << x * this->y << endl;
  10. }
  11. };
  12. class P3 : public P2 {
  13. }
  14.  
  15. int main() {
  16. // your code goes here
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:13:1: error: expected ‘;’ after class definition
 }
 ^
stdout
Standard output is empty