记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
  scanf("%1d",&n);
         ~~^  ~~
         %1ld
foo.c:10:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   if(n%i==0)
     ^
foo.c:16:15: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
     printf("%1d",m);
             ~~^
             %1ld
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%1d",&n);
  ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -726255616, expect 60. 114ms 328.0 KiB
#2 Wrong Answer Read 769747376, expect 12. 114ms 288.0 KiB
#3 Wrong Answer Read 1446201536, expect 372. 112ms 296.0 KiB
#4 Wrong Answer Read 904370432, expect 378. 113ms 332.0 KiB
#5 Wrong Answer Read 613566784, expect 465. 113ms 328.0 KiB

信息

递交者
类型
递交
题目
A3-1 素数专题:因子的和
比赛
中北 计算机2021级专业修读指导(1)
语言
C
递交时间
2021-11-30 19:37:47
评测时间
2021-11-30 19:37:47
评测机
分数
0
总耗时
568ms
峰值内存
332.0 KiB