记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:5:14: warning: missing braces around initializer [-Wmissing-braces]
  int a[2][3]={1,2,3,4,5,6};
              ^
/in/foo.c:5:14: note: (near initialization for 'a')
/in/foo.c:10:9: warning: too many arguments for format [-Wformat-extra-args]
  printf("\n",a);
         ^~~~
/in/foo.c:8:16: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
  { a[i][j]=a[j][i];
            ~~~~^~~
/in/foo.c:7:4: note: within this loop
  { for(int j=0;j<3;j++)
    ^~~
/in/foo.c:8:13: warning: array subscript is above array bounds [-Warray-bounds]
  { a[i][j]=a[j][i];
            ~^~~
/in/foo.c:8:13: warning: array subscript is above array bounds [-Warray-bounds]
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 196.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2024-11-26 16:18:25
评测时间
2024-11-26 16:18:25
评测机
分数
0
总耗时
1ms
峰值内存
196.0 KiB