Wrong Answer

foo.cc: In function 'int main()':
foo.cc:13:19: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
   13 |  c = a[1]+a[2]+a[3];
      |                ~~~^
foo.cc:6:6: note: while referencing 'a'
    6 |  int a[3],b[3],c,d,i;
      |      ^
foo.cc:14:9: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
   14 |  d = b[3]+b[2]+b[1];
      |      ~~~^
foo.cc:6:11: note: while referencing 'b'
    6 |  int a[3],b[3],c,d,i;
      |           ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read No, expect Yes. 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1126 幸运数对(1)
语言
C++
递交时间
2021-12-13 20:09:53
评测时间
2021-12-13 20:09:53
评测机
分数
50
总耗时
4ms
峰值内存
384.0 KiB