foo.c: In function ‘main’:
foo.c:7:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
7 | scanf("%d,%d,%d",a,b,c)
| ~^ ~
| | |
| int * int
foo.c:7:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
7 | scanf("%d,%d,%d",a,b,c)
| ~^ ~
| | |
| int * int
foo.c:7:23: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘int’ [-Wformat=]
7 | scanf("%d,%d,%d",a,b,c)
| ~^ ~
| | |
| int * int
foo.c:7:32: error: expected ‘;’ before ‘if’
7 | scanf("%d,%d,%d",a,b,c)
| ^
| ;
8 | if(a>c&a<b)
| ~~