foo.c: In function ‘main’:
foo.c:8:25: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
8 | scanf("%d%s",a[i++],c);
| ~^ ~~~~~~
| | |
| int * int
foo.c:8:27: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
8 | scanf("%d%s",a[i++],c);
| ~^ ~
| | |
| char * int
foo.c:9:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
9 | printf("%d%s",&a[i++],&c);
| ~^ ~~~~~~~
| | |
| int int *
| %ls
foo.c:10:16: error: expected ‘(’ before ‘;’ token
10 | }while ;
| ^
| (