Runtime Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
16 | while (scanf("%d", n)) {
| ~^ ~
| | |
| | int
| int*
/in/foo.cc:16:14: warning: 'n' is used uninitialized in this function [-Wuninitialized]
16 | while (scanf("%d", n)) {
| ~~~~~^~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1807 how many 1s
- 语言
- C++
- 递交时间
- 2024-04-07 16:00:23
- 评测时间
- 2024-04-07 16:00:23
- 评测机
- 分数
- 0
- 总耗时
- 172ms
- 峰值内存
- 38.586 MiB