fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. {
  5. printf("%d is greater than %d",&a,&b);
  6. }
  7. else
  8. {
  9. printf("%d is greater than %d",&b,&a);
  10. }
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
45 98
compilation info
prog.c: In function ‘main’:
prog.c:5:34: error: ‘a’ undeclared (first use in this function)
  printf("%d is greater than %d",&a,&b);
                                  ^
prog.c:5:34: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:37: error: ‘b’ undeclared (first use in this function)
  printf("%d is greater than %d",&a,&b);
                                     ^
prog.c:7:1: error: ‘else’ without a previous ‘if’
 else
 ^~~~
stdout
Standard output is empty