记录详情

Accepted

foo.c: In function 'main':
foo.c:35:43: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   35 |                         sum[j] = sum[j] + abs(b);
      |                                           ^~~
foo.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | int main()
foo.c:41:13: warning: 'sum' may be used uninitialized [-Wmaybe-uninitialized]
   41 |         int xmin = sum[min];
      |             ^~~~
foo.c:27:13: note: 'sum' declared here
   27 |         int sum[100000];
      |             ^~~
foo.c:14:19: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized]
   14 |         min = max = a[1];
      |               ~~~~^~~~~~
foo.c:7:13: note: 'a' declared here
    7 |         int a[100000];
      |             ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 640.0 KiB
#2 Accepted 14ms 700.0 KiB
#3 Accepted 108ms 640.0 KiB
#4 Accepted 212ms 640.0 KiB
#5 Accepted 581ms 756.0 KiB

信息

递交者
类型
递交
题目
4-1 旅游住处
语言
C
递交时间
2022-10-04 15:15:30
评测时间
2022-10-04 15:15:30
评测机
分数
100
总耗时
921ms
峰值内存
756.0 KiB