Wrong Answer
foo.c: In function 'FindiMax': foo.c:9:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] 9 | scanf("%d",&a[i]); | ^~~~~~~~~~~~~~~~~ foo.c:6:5: warning: 'a[0]' is used uninitialized in this function [-Wuninitialized] 6 | max=a[0]; | ~~~^~~~~ foo.c: In function 'main': foo.c:29:2: warning: 'max' is used uninitialized in this function [-Wuninitialized] 29 | FindiMax(max); | ^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 自测
- 题目
- A7-3 数组的极值下标函数
- 语言
- C
- 递交时间
- 2021-12-23 23:33:47
- 评测时间
- 2021-12-23 23:33:47
- 评测机
- 分数
- 0
- 总耗时
- 2ms
- 峰值内存
- 256.0 KiB