fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a;
  5. printf("enter your age");
  6. scanf("%d",&d);
  7. printf("your age is %d",a);
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 2156KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:6:13: error: 'd' undeclared (first use in this function)
 scanf("%d",&d);
             ^
prog.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty