foo.c: In function 'main':
foo.c:7:13: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
7 | scanf("%d%c%d",a,c,b);
| ~^ ~
| | |
| int * int
foo.c:7:15: warning: format '%c' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
7 | scanf("%d%c%d",a,c,b);
| ~^ ~
| | |
| char * int
foo.c:7:17: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
7 | scanf("%d%c%d",a,c,b);
| ~^ ~
| | |
| int * int
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d%c%d",a,c,b);
| ^~~~~~~~~~~~~~~~~~~~~
foo.c:7:5: warning: 'c' is used uninitialized in this function [-Wuninitialized]
7 | scanf("%d%c%d",a,c,b);
| ^~~~~~~~~~~~~~~~~~~~~
foo.c:7:5: warning: 'a' is used uninitialized in this function [-Wuninitialized]
foo.c:7:5: warning: 'b' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务