记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:16:25: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
   16 |                         printf("%d",b[i][j]);}
      |                         ^~~~~~~~~~~~~~~~~~~~
/in/foo.c:15:30: note: within this loop
   15 |                 for(int j=0;j<3;j++){
      |                             ~^~
/in/foo.c:11:37: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
   11 |                         b[j][i]=a[i][j];
      |                                 ~~~~^~~
/in/foo.c:10:30: note: within this loop
   10 |                 for(int i=0;i<3;i++){
      |                             ~^~
/in/foo.c:11:34: warning: array subscript 2 is above array bounds of 'int[2][3]' [-Warray-bounds]
   11 |                         b[j][i]=a[i][j];
      |                                 ~^~~
/in/foo.c:3:13: note: while referencing 'a'
    3 |         int a[2][3];
      |             ^
/in/foo.c:11:29: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds]
   11 |                         b[j][i]=a[i][j];
      |                         ~~~~^~~
/in/foo.c:4:13: note: while referencing 'b'
    4 |         int b[3][2];
      |             ^
/in/foo.c:11:34: warning: array subscript 2 is above array bounds of 'int[2][3]' [-Warray-bounds]
   11 |                         b[j][i]=a[i][j];
      |                                 ~^~~
/in/foo.c:3:13: note: while referencing 'a'
    3 |         int a[2][3];
      |             ^
/in/foo.c:11:29: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds]
   11 |                         b[j][i]=a[i][j];
      |                         ~~~~^~~
/in/foo.c:4:13: note: while referencing 'b'
    4 |         int b[3][2];
      |             ^
/in/foo.c:16:25: warning: 'b' is used uninitialized [-Wuninitialized]
   16 |                         printf("%d",b[i][j]);}
      |                         ^~~~~~~~~~~~~~~~~~~~
/in/foo.c:4:13: note: 'b' declared here
    4 |         int b[3][2];
      |             ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2025-11-29 16:37:10
评测时间
2025-11-29 16:37:10
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB