fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a=20,b=30,c;
  6. c=a+b;
  7. cout<<"The result is"<<c;
  8. }
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9:2: error: expected unqualified-id before ‘return’
  return 0;
  ^~~~~~
prog.cpp:10:1: error: expected declaration before ‘}’ token
 }
 ^
stdout
Standard output is empty