fork(1) download
  1. void main(void)
  2. {
  3. int n=0
  4. if(n=0)n=1;
  5. else if (n=1)n=2
  6. else if (n=2)n=3
  7. else if (n=3)n=4
  8. printf("%d\n",n);
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
prog.c: In function ‘main’:
prog.c:4:1: error: expected ‘,’ or ‘;’ before ‘if’
prog.c:5:1: error: ‘else’ without a previous ‘if’
prog.c:5:1: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
prog.c:6:1: error: expected ‘;’ before ‘else’
stdout
Standard output is empty