Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:15: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'int*' [-Wformat=]
  scanf("%f",&f);
             ~~^
foo.cc:9:17: warning: too many arguments for format [-Wformat-extra-args]
  printf("&.1f",c);
                 ^
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%f",&f);
  ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read &.1f, expect 6.1. 1ms 348.0 KiB
#2 Wrong Answer Read &.1f, expect 32.6. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1008 温度转换
语言
C++
递交时间
2021-11-13 09:14:50
评测时间
2021-11-13 09:14:50
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB