fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("정수를 입력하세요");
  5.  
  6. int num;
  7. scnaf("%d",&num);
  8. if(num%2==1)
  9. printf("이 정수는 홀수 입니다.");
  10. else if(num%2==0)
  11. printf(" 이 정수는 짝수 입니다.");
  12. else
  13. printf(" 이 수는 0 입니다");
  14. // your code goes here
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7:2: warning: implicit declaration of function ‘scnaf’ [-Wimplicit-function-declaration]
  scnaf("%d",&num);
  ^~~~~
/home/tlkPEa/ccw56k2E.o: In function `main':
prog.c:(.text.startup+0x21): undefined reference to `scnaf'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty