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)提供评测服务