记录详情

Runtime Error

foo.c: In function 'main':
foo.c:18:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   18 |                 scanf("%d", a[i]);
      |                        ~^   ~~~~
      |                         |    |
      |                         |    int
      |                         int *
In function 'FindMin',
    inlined from 'main' at foo.c:19:10:
foo.c:6:13: warning: 'a' is used uninitialized [-Wuninitialized]
    6 |         int max = a[0];
      |             ^~~
foo.c: In function 'main':
foo.c:15:16: note: 'a' declared here
   15 |         int n, a[N];
      |                ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 284.0 KiB
#2 Runtime Error Segmentation fault 2ms 388.0 KiB

信息

递交者
类型
递交
题目
1-4 最大值的个数
语言
C
递交时间
2023-12-21 18:45:49
评测时间
2023-12-21 18:45:49
评测机
分数
0
总耗时
5ms
峰值内存
388.0 KiB