/ Vijos /

记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 640.0 KiB
#2 Accepted 7ms 640.0 KiB
#3 Accepted 5ms 640.0 KiB
#4 Accepted 6ms 640.0 KiB
#5 Accepted 6ms 640.0 KiB
#6 Accepted 14ms 768.0 KiB
#7 Accepted 9ms 640.0 KiB
#8 Accepted 10ms 640.0 KiB
#9 Accepted 13ms 640.0 KiB
#10 Accepted 14ms 640.0 KiB

信息

递交者
类型
递交
题目
P1492 宁静与九连环
语言
C++
递交时间
2022-07-04 08:28:31
评测时间
2022-07-04 08:28:31
评测机
分数
100
总耗时
93ms
峰值内存
768.0 KiB