记录详情

Compile Error

/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;
      |             ^

信息

递交者
类型
自测
语言
C
递交时间
2025-11-06 16:31:05
评测时间
2025-11-06 16:31:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes