foo.cc: In function 'void plus_(int, int)':
foo.cc:23:5: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
23 | l[4]=len;
| ~~~^
foo.cc:5:5: note: while referencing 'l'
5 | int l[4];
| ^
foo.cc: In function 'void plus_one(int, int)':
foo.cc:43:5: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
43 | l[4]=len;
| ~~~^
foo.cc:5:5: note: while referencing 'l'
5 | int l[4];
| ^
foo.cc: In function 'void copy(int)':
foo.cc:47:20: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
47 | for(int i=1;i<=l[4];i++)
| ~~~^
foo.cc:5:5: note: while referencing 'l'
5 | int l[4];
| ^
foo.cc:50:5: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
50 | l[4]=0;
| ~~~^
foo.cc:5:5: note: while referencing 'l'
5 | int l[4];
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务