fork(3) download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. for (int i=0; i<10; ++i); //<==
  6. printf("yeah right %d\n", i);
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:29: error: ‘i’ was not declared in this scope
   printf("yeah right %d\n", i);
                             ^
stdout
Standard output is empty