Runtime Error
/in/foo.c: In function 'main':
/in/foo.c:6:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
6 | scanf("%d",n);
| ~^ ~
| | |
| | int
| int *
/in/foo.c:6:9: warning: 'n' is used uninitialized [-Wuninitialized]
6 | scanf("%d",n);
| ^~~~~~~~~~~~~
/in/foo.c:5:13: note: 'n' was declared here
5 | int n,i;
| ^
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-12-26 14:44:24
- 评测时间
- 2025-12-26 14:44:24
- 评测机
- 分数
- 0
- 总耗时
- 1ms
- 峰值内存
- 284.0 KiB