foo.c: In function ‘main’:
foo.c:5:10: warning: format ‘%a’ expects argument of type ‘float *’, but argument 2 has type ‘double *’ [-Wformat=]
5 | scanf ("%a%b%c",&a,&b,&c);
| ~^ ~~
| | |
| | double *
| float *
| %la
foo.c:5:12: warning: format ‘%b’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘double *’ [-Wformat=]
5 | scanf ("%a%b%c",&a,&b,&c);
| ~^ ~~
| | |
| | double *
| unsigned int *
| %le
foo.c:5:14: warning: format ‘%c’ expects argument of type ‘char *’, but argument 4 has type ‘double *’ [-Wformat=]
5 | scanf ("%a%b%c",&a,&b,&c);
| ~^ ~~
| | |
| char * double *
| %le
foo.c:9:9: warning: too many arguments for format [-Wformat-extra-args]
9 | printf ("%f,%f,%f中最大的数是%m",a,b,c,m);
| ^~~~~~~~~~~~~~~~~~~~~~~~