记录详情

Accepted

foo.c: In function 'main':
foo.c:10:17: warning: array subscript 2 is above array bounds of 'int[1]' [-Warray-bounds]
   10 |         int g = gongyueshu(a[1], a[2]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
foo.c:7:13: note: while referencing 'a'
    7 |         int a[] = { 0 };
      |             ^
foo.c:10:17: warning: array subscript 1 is above array bounds of 'int[1]' [-Warray-bounds]
   10 |         int g = gongyueshu(a[1], a[2]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
foo.c:7:13: note: while referencing 'a'
    7 |         int a[] = { 0 };
      |             ^
foo.c:13:29: warning: array subscript 3 is above array bounds of 'int[1]' [-Warray-bounds]
   13 |                         g = gongyueshu(g, a[i]);
      |                             ^~~~~~~~~~~~~~~~~~~
foo.c:7:13: note: while referencing 'a'
    7 |         int a[] = { 0 };
      |             ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
A6-4 最大公约数专题:多个数的最大公约数
语言
C
递交时间
2022-10-04 15:53:32
评测时间
2022-10-04 15:53:32
评测机
分数
100
总耗时
15ms
峰值内存
256.0 KiB