fork download
  1. int main () {
  2. for(int j = 0; j < 10; j++) {
  3. printf("Yganda");
  4. sleep(1)
  5. }
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:3:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
   printf("Yganda");
   ^~~~~~
prog.c:3:3: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:3:3: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:4:3: warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration]
   sleep(1)
   ^~~~~
prog.c:5:2: error: expected ‘;’ before ‘}’ token
  }
  ^
stdout
Standard output is empty