Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:24: warning: iteration 49 invokes undefined behavior [-Waggressive-loop-optimizations]
   printf("%d\n", a[i][0] + a[i][1] + a[i][2] + a[i][3]);
                  ~~~~~~^
/in/foo.cc:10:19: note: within this loop
  for(int i = 0; i <= 49; i++){
                 ~~^~~~~
/in/foo.cc:13:10: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
    printf("%d ", a[i][j]);
    ~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:12:20: note: within this loop
   for(int j = 0; j <= 3; j++){
                  ~~^~~~
/in/foo.cc:15:54: warning: array subscript is above array bounds [-Warray-bounds]
   printf("%d\n", a[i][0] + a[i][1] + a[i][2] + a[i][3]);
                                                ~~~~~~^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 448.0 KiB
#2 Wrong Answer 1ms 380.0 KiB
#3 Wrong Answer 1ms 376.0 KiB
#4 Wrong Answer 1ms 360.0 KiB
#5 Wrong Answer 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1004 成绩表
语言
C++
递交时间
2024-05-26 20:06:40
评测时间
2024-05-26 20:06:40
评测机
分数
0
总耗时
8ms
峰值内存
448.0 KiB