fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for(int i=1;i<10;){
  6.  
  7. cout<<i<<'\n';
  8. }
  9. return 0
  10. }
Compilation error #stdin compilation error #stdout 0s 16048KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:10:1: error: expected ‘;’ before ‘}’ token
 }
 ^
stdout

Standard output is empty