Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'float*' [-Wformat=]
    scanf("%d,%d",&a,&b);cin>>c;
                       ^
/in/foo.cc:11:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'float*' [-Wformat=]
/in/foo.cc:7:19: warning: unused variable 'q' [-Wunused-variable]
    char c,e,f,g,h,q;
                   ^
/in/foo.cc:33:10: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
    printf("%.2f",sum);
    ~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 412.0 KiB
#2 Wrong Answer 1ms 352.0 KiB
#3 Wrong Answer 1ms 360.0 KiB
#4 Wrong Answer 1ms 364.0 KiB
#5 Wrong Answer 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1028 简单计算器
语言
C++
递交时间
2023-12-09 17:53:58
评测时间
2023-12-09 17:53:58
评测机
分数
0
总耗时
9ms
峰值内存
412.0 KiB