/in/foo.c: In function 'main':
/in/foo.c:6:13: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double' [-Wformat=]
6 | scanf("%f",f);
| ~^ ~
| | |
| | double
| float *
/in/foo.c:8:31: warning: unknown conversion type character ' ' in format [-Wformat=]
8 | printf("摄氏温度:%0.2 ");
| ^
/in/foo.c:8:9: error: expected declaration or statement at end of input
8 | printf("摄氏温度:%0.2 ");
| ^~~~~~
/in/foo.c:4:13: warning: variable 'c' set but not used [-Wunused-but-set-variable]
4 | float f,c;
| ^