fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i;
  6. for( i=1 ; i<=10 ; i++ ){
  7. printf("%d\n", i);
  8. }
  9. return 0;
  10. }rn 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:7:25: error: 'printf' was not declared in this scope
         printf("%d\n", i);
                         ^
prog.cpp: At global scope:
prog.cpp:10:2: error: 'rn' does not name a type
 }rn 0;
  ^
prog.cpp:11:1: error: expected declaration before '}' token
 }
 ^
stdout
Standard output is empty