记录详情

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);
      |         ^~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 7ms 8.414 MiB
#2 Runtime Error 7ms 8.418 MiB
#3 Runtime Error 7ms 8.371 MiB
#4 Runtime Error 7ms 8.41 MiB
#5 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1080 xf1-3进制转换1
语言
C
递交时间
2025-02-20 16:05:35
评测时间
2025-02-20 16:05:35
评测机
分数
0
总耗时
31ms
峰值内存
8.418 MiB