记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:14: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
    8 |      scanf("%d",&x[k]);
      |             ~^  ~~~~~
      |              |  |
      |              |  long int *
      |              int *
      |             %ld
foo.c:27:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   27 |   printf("%d\n",b);
      |           ~^    ~
      |            |    |
      |            int  long int
      |           %ld
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    5 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:8:6: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |      scanf("%d",&x[k]);
      |      ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 5. 1ms 276.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer Read 2, expect 50. 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
A6-4 最大公约数专题:多个数的最大公约数
比赛
2022春 C语言课程设计 作业1
语言
C
递交时间
2022-03-07 14:51:02
评测时间
2022-03-07 14:51:02
评测机
分数
60
总耗时
7ms
峰值内存
276.0 KiB