fork download
  1. #include “stdio.h”
  2. main()
  3. {
  4. int x,y;
  5. char ch;
  6. x=’a’;
  7. y=x+3;
  8. ch=65;
  9. printf(“x=%c,x=%d”,x,x);
  10. printf(“y=%d”,y);
  11. printf(“ch=%d,ch=%c”,ch,ch);
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include “stdio.h”
          ^
prog.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main()
 ^~~~
prog.c: In function ‘main’:
prog.c:6:3: error: stray ‘\342’ in program
 x=’a’;
   ^
prog.c:6:4: error: stray ‘\200’ in program
 x=’a’;
    ^
prog.c:6:5: error: stray ‘\231’ in program
 x=’a’;
     ^
prog.c:6:7: error: stray ‘\342’ in program
 x=’a’;
       ^
prog.c:6:8: error: stray ‘\200’ in program
 x=’a’;
        ^
prog.c:6:9: error: stray ‘\231’ in program
 x=’a’;
         ^
prog.c:6:6: error: ‘a’ undeclared (first use in this function)
 x=’a’;
      ^
prog.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf(“x=%c,x=%d”,x,x);
 ^~~~~~
prog.c:9:1: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:9:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:9:8: error: stray ‘\342’ in program
 printf(“x=%c,x=%d”,x,x);
        ^
prog.c:9:9: error: stray ‘\200’ in program
 printf(“x=%c,x=%d”,x,x);
         ^
prog.c:9:10: error: stray ‘\234’ in program
 printf(“x=%c,x=%d”,x,x);
          ^
prog.c:9:13: error: expected expression before ‘%’ token
 printf(“x=%c,x=%d”,x,x);
             ^
prog.c:9:20: error: stray ‘\342’ in program
 printf(“x=%c,x=%d”,x,x);
                    ^
prog.c:9:21: error: stray ‘\200’ in program
 printf(“x=%c,x=%d”,x,x);
                     ^
prog.c:9:22: error: stray ‘\235’ in program
 printf(“x=%c,x=%d”,x,x);
                      ^
prog.c:10:8: error: stray ‘\342’ in program
 printf(“y=%d”,y);
        ^
prog.c:10:9: error: stray ‘\200’ in program
 printf(“y=%d”,y);
         ^
prog.c:10:10: error: stray ‘\234’ in program
 printf(“y=%d”,y);
          ^
prog.c:10:13: error: expected expression before ‘%’ token
 printf(“y=%d”,y);
             ^
prog.c:10:15: error: stray ‘\342’ in program
 printf(“y=%d”,y);
               ^
prog.c:10:16: error: stray ‘\200’ in program
 printf(“y=%d”,y);
                ^
prog.c:10:17: error: stray ‘\235’ in program
 printf(“y=%d”,y);
                 ^
prog.c:11:8: error: stray ‘\342’ in program
 printf(“ch=%d,ch=%c”,ch,ch);
        ^
prog.c:11:9: error: stray ‘\200’ in program
 printf(“ch=%d,ch=%c”,ch,ch);
         ^
prog.c:11:10: error: stray ‘\234’ in program
 printf(“ch=%d,ch=%c”,ch,ch);
          ^
prog.c:11:14: error: expected expression before ‘%’ token
 printf(“ch=%d,ch=%c”,ch,ch);
              ^
prog.c:11:22: error: stray ‘\342’ in program
 printf(“ch=%d,ch=%c”,ch,ch);
                      ^
prog.c:11:23: error: stray ‘\200’ in program
 printf(“ch=%d,ch=%c”,ch,ch);
                       ^
prog.c:11:24: error: stray ‘\235’ in program
 printf(“ch=%d,ch=%c”,ch,ch);
                        ^
prog.c:5:6: warning: variable ‘ch’ set but not used [-Wunused-but-set-variable]
 char ch;
      ^~
prog.c:4:7: warning: variable ‘y’ set but not used [-Wunused-but-set-variable]
 int x,y;
       ^
stdout
Standard output is empty