记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:5:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'float *' [-Wformat=]
  scanf("%d%d%d",&a,&m,&k);
          ^
/in/foo.c:5:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'float *' [-Wformat=]
  scanf("%d%d%d",&a,&m,&k);
            ^
/in/foo.c:5:14: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'float *' [-Wformat=]
  scanf("%d%d%d",&a,&m,&k);
              ^
/in/foo.c:14:2: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%f ",sum);
  ^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 272.0 KiB

信息

递交者
类型
自测
题目
P1033 xf1-8交电费
语言
C
递交时间
2021-12-28 14:05:54
评测时间
2021-12-28 14:05:54
评测机
分数
0
总耗时
1ms
峰值内存
272.0 KiB