foo.c: In function 'main':
foo.c:8:26: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
8 | number[i]=0;
| ~~~~~~~~~^~
foo.c:7:18: note: within this loop
7 | for(i=0;i<=999;i++){
| ~^~~~~
foo.c:16:34: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
16 | for(j=1;j<=number[i];j++){
| ~~~~~~^~~
foo.c:15:18: note: within this loop
15 | for(i=0;i<=999;i++){
| ~^~~~~
foo.c:8:26: warning: '__builtin_memset' forming offset [3996, 3999] is out of the bounds [0, 3996] of object 'number' with type 'int[999]' [-Warray-bounds]
8 | number[i]=0;
| ~~~~~~~~~^~
foo.c:5:8: note: 'number' declared here
5 | int number[999];
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务