记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:13: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double' [-Wformat=]
    5 |     scanf("%f",m);
      |            ~^  ~
      |             |  |
      |             |  double
      |             float*
/in/foo.cc:5:10: warning: 'm' is used uninitialized [-Wuninitialized]
    5 |     scanf("%f",m);
      |     ~~~~~^~~~~~~~
/in/foo.cc:4:11: note: 'm' was declared here
    4 |     float m,n;
      |           ^
/in/foo.cc:18:11: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized]
   18 |     printf("%.2f",n);
      |     ~~~~~~^~~~~~~~~~
/in/foo.cc:4:13: note: 'n' was declared here
    4 |     float m,n;
      |             ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
自测
语言
C++
递交时间
2026-11-13 20:37:22
评测时间
2026-11-13 20:37:22
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB