记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:16:14: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'int *' [-Wformat=]
   16 |     scanf("%ld", &num);
      |            ~~^   ~~~~
      |              |   |
      |              |   int *
      |              long int *
      |            %d
foo.c:34:39: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
   34 |         printf("这个数转为二进制为:%ld", binary);
      |                                     ~~^   ~~~~~~
      |                                       |   |
      |                                       |   int
      |                                       long int
      |                                     %d
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 请输入一个正整数:, expect 110. 1ms 196.0 KiB
#2 Wrong Answer Read 请输入一个正整数:, expect 100110. 2ms 284.0 KiB
#3 Wrong Answer Read 请输入一个正整数:, expect 1101010. 1ms 284.0 KiB
#4 Wrong Answer Read 请输入一个正整数:, expect 1010111001000101.... 2ms 284.0 KiB
#5 Wrong Answer Read 请输入一个正整数:, expect 1101100101010101.... 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1080 xf1-3进制转换1
比赛
2023 程序设计与竞赛(作业1:见面赛)
语言
C
递交时间
2023-09-20 16:51:29
评测时间
2023-09-20 16:51:29
评测机
分数
0
总耗时
9ms
峰值内存
284.0 KiB