fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=0,b=0;
  5. if(a==0)
  6. {
  7. int d;
  8. d=5;
  9. }
  10. printf("%d%d%d",a,b,d);
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7:7: warning: variable ‘d’ set but not used [-Wunused-but-set-variable]
   int d;
       ^
prog.c:10:22: error: ‘d’ undeclared (first use in this function)
  printf("%d%d%d",a,b,d);
                      ^
prog.c:10:22: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty