Runtime Error
/in/foo.c: In function 'main':
/in/foo.c:6:10: 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:2: warning: 'n' is used uninitialized [-Wuninitialized]
6 | scanf("%d",n);
| ^~~~~~~~~~~~~
/in/foo.c:5:6: note: 'n' was declared here
5 | int n;
| ^
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-12-29 16:09:12
- 评测时间
- 2025-12-29 16:09:17
- 评测机
- 分数
- 0
- 总耗时
- 1ms
- 峰值内存
- 420.0 KiB