fork download
  1. //keychecker
  2. int scanc()
  3. {
  4. int result=0;
  5. char in;
  6.  
  7. while (in==0)
  8. {
  9. scanf("%c", &in);
  10. result=atoi(in);
  11.  
  12. if (result==0)
  13. printf("Incorrect input!");
  14. }
  15. return (result);
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'scanc':
prog.c:9:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
         scanf("%c", &in);
         ^
prog.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf'
prog.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
prog.c:10:16: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
         result=atoi(in);
                ^
prog.c:13:13: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
             printf("Incorrect input!");
             ^
prog.c:13:13: warning: incompatible implicit declaration of built-in function 'printf'
prog.c:13:13: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/lib/gcc/i586-linux-gnu/5/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty