fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int sum,x,y;
  6. cin>>x,y;
  7. sum = x + y;
  8. cout<<"the sum is "<<sum<<endl;
  9. return0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
5
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:1: error: ‘return0’ was not declared in this scope
 return0;
 ^~~~~~~
stdout
Standard output is empty