foo.c: In function 'main':
foo.c:20:25: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
20 | scanf("%s %d %d %c %c %d", &name, &grade1, &grade2, &carder, &western, &paper);
| ~^ ~~~~~
| | |
| char * char (*)[20]
foo.c:20:34: warning: format '%c' expects argument of type 'char *', but argument 5 has type 'char (*)[1]' [-Wformat=]
20 | scanf("%s %d %d %c %c %d", &name, &grade1, &grade2, &carder, &western, &paper);
| ~^ ~~~~~~~
| | |
| char * char (*)[1]
foo.c:20:37: warning: format '%c' expects argument of type 'char *', but argument 6 has type 'char (*)[1]' [-Wformat=]
20 | scanf("%s %d %d %c %c %d", &name, &grade1, &grade2, &carder, &western, &paper);
| ~^ ~~~~~~~~
| | |
| char * char (*)[1]
[Hydro](https://hydro.ac)提供评测服务