Runtime Error
/in/foo.c: In function 'main':
/in/foo.c:9:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
9 | scanf("%d",a[i]);}
| ~^ ~~~~
| | |
| | int
| int *
/in/foo.c:9:17: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized]
9 | scanf("%d",a[i]);}
| ^~~~~~~~~~~~~~~~
/in/foo.c:7:13: note: 'a' declared here
7 | int a[1000];
| ^
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-11-24 17:17:14
- 评测时间
- 2025-11-24 17:17:14
- 评测机
- 分数
- 0
- 总耗时
- 1ms
- 峰值内存
- 420.0 KiB