Runtime Error

foo.cc: In function 'int main()':
foo.cc:12:33: warning: array subscript 51 is above array bounds of 'int [10]' [-Warray-bounds]
   12 |                         a[i][51]+=a[i][j];
      |                         ~~~~~~~~^~~~~~~~~
foo.cc:5:13: note: while referencing 'a'
    5 |         int a[52][10];
      |             ^
foo.cc:12:33: warning: array subscript 51 is above array bounds of 'int [10]' [-Warray-bounds]
   12 |                         a[i][51]+=a[i][j];
      |                         ~~~~~~~~^~~~~~~~~
foo.cc:5:13: note: while referencing 'a'
    5 |         int a[52][10];
      |             ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 412.0 KiB
#2 Runtime Error Segmentation fault 4ms 412.0 KiB
#3 Runtime Error Segmentation fault 4ms 412.0 KiB
#4 Runtime Error Segmentation fault 3ms 412.0 KiB
#5 Runtime Error Segmentation fault 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1004 成绩表
语言
C++
递交时间
2023-07-14 20:39:42
评测时间
2023-07-14 20:39:42
评测机
分数
0
总耗时
21ms
峰值内存
412.0 KiB