fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class X
  5. {
  6. int x;
  7. }
  8.  
  9. int main() {
  10. // your code goes here
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:7:1: error: expected ';' after class definition
 }
 ^
stdout
Standard output is empty