fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int age;
  5. scanf ("%d", &g);
  6. print("Your age is %d\n", age);
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:16: error: ‘g’ undeclared (first use in this function)
  scanf ("%d", &g);
                ^
prog.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:2: warning: implicit declaration of function ‘print’; did you mean ‘printf’? [-Wimplicit-function-declaration]
  print("Your age is %d\n", age);
  ^~~~~
  printf
stdout
Standard output is empty