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. }
  9.  
  10. int main() {
  11. // your code goes here
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8:1: error: expected ‘;’ after class definition
 }
 ^
stdout
Standard output is empty