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;
^