Runtime Error
/in/foo.c: In function 'num': /in/foo.c:5:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 5 | printf("%d",n%2); | ~^ ~~~ | | | | int long int | %ld /in/foo.c:2:6: warning: infinite recursion detected [-Winfinite-recursion] 2 | void num(long int n) | ^~~ /in/foo.c:4:9: note: recursive call 4 | num(n / 2); | ^~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1080 xf1-3进制转换1
- 语言
- C
- 递交时间
- 2025-02-20 16:05:35
- 评测时间
- 2025-02-20 16:05:35
- 评测机
- 分数
- 0
- 总耗时
- 31ms
- 峰值内存
- 8.418 MiB