记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:27:11: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   27 |   sum=sum+abs(a[i]-aveg);
      |           ^~~
foo.c:27:19: warning: 'abs' argument 1 promotes to 'double' where 'int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   27 |   sum=sum+abs(a[i]-aveg);
      |               ~~~~^~~~~
<built-in>: note: built-in 'abs' declared here
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   10 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6968224, expect 228397. 3ms 640.0 KiB
#2 Wrong Answer Read -1840339200, expect 2522595. 3ms 640.0 KiB
#3 Wrong Answer Read 175848160, expect 25109094. 2ms 640.0 KiB
#4 Wrong Answer Read -1364737120, expect 48578148. 2ms 640.0 KiB
#5 Wrong Answer Read 1504092224, expect 121598222. 3ms 640.0 KiB

信息

递交者
类型
递交
题目
4-1 旅游住处
比赛
2021(四) 作业第四场:加速赛
语言
C
递交时间
2021-12-08 16:37:34
评测时间
2021-12-08 16:37:34
评测机
分数
0
总耗时
16ms
峰值内存
640.0 KiB