fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. printf("Hello World");
  5. getch();
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:5: warning: implicit declaration of function ‘getch’ [-Wimplicit-function-declaration]
prog.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]
/home/tys9CS/ccmWqE0U.o: In function `main':
prog.c:(.text.startup+0x16): undefined reference to `getch'
collect2: error: ld returned 1 exit status
stdout

Standard output is empty