Runtime Error
foo.c: In function 'main': foo.c:21:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] 21 | scanf("%d",a[i]); | ~^ ~~~~ | | | | | int | int * foo.c:21:17: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 21 | scanf("%d",a[i]); | ^~~~~~~~~~~~~~~~ foo.c:16:13: note: 'a' declared here 16 | int a[1000]; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- A7-2 数组的极值函数
- 比赛
- 2023 程序设计与基础(单个的数组)
- 语言
- C
- 递交时间
- 2023-11-21 15:17:08
- 评测时间
- 2023-11-21 15:17:08
- 评测机
- 分数
- 0
- 总耗时
- 10ms
- 峰值内存
- 284.0 KiB