fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. #include <iostream>
  6. using namespace std;
  7. int main()
  8. {
  9. int x,y;
  10. cin>>x;
  11. y = x * 5;
  12. cout<<"you entered "<<X<<endl;
  13. cout<<"y is :"<<y;
  14. return0;
  15. }
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:1: error: a function-definition is not allowed here before ‘{’ token
 {
 ^
stdout
Standard output is empty