Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:29: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=]
  scanf("%1f,%1f,%c",&a,&b,&c);
                             ^
/in/foo.cc:8:29: warning: format '%f' expects argument of type 'float*', but argument 3 has type 'double*' [-Wformat=]
/in/foo.cc:6:13: warning: variable 'result' set but not used [-Wunused-but-set-variable]
  double a,b,result;
             ^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 376.0 KiB
#2 Wrong Answer 1ms 316.0 KiB
#3 Wrong Answer 1ms 308.0 KiB
#4 Wrong Answer 2ms 324.0 KiB
#5 Wrong Answer 1ms 332.0 KiB

信息

递交者
类型
递交
题目
P1028 简单计算器
语言
C++
递交时间
2021-11-20 10:24:59
评测时间
2021-11-20 10:24:59
评测机
分数
0
总耗时
9ms
峰值内存
376.0 KiB