Runtime Error
foo.c: In function 'main': foo.c:18:18: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] 18 | scanf("%d",a[i]); | ~^ ~~~~ | | | | | int | int * foo.c:18:10: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 18 | scanf("%d",a[i]); | ^~~~~~~~~~~~~~~~ foo.c:15:10: note: 'a' declared here 15 | {int n=0,a[10000]; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 自测
- 题目
- A7-2 数组的极值函数
- 语言
- C
- 递交时间
- 2023-11-21 13:57:49
- 评测时间
- 2023-11-21 13:57:49
- 评测机
- 分数
- 0
- 总耗时
- 2ms
- 峰值内存
- 320.0 KiB