记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:9: error: variable-sized object may not be initialized
    5 |         int a[2][3]={0},b[i][j]={0};
      |         ^~~
/in/foo.c:11:37: error: 'n' undeclared (first use in this function)
   11 |                         scanf("%d",&n);
      |                                     ^
/in/foo.c:11:37: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:17:41: error: expected ')' before '\U0000ff09'
   17 |                         for(j=0;j<=1;j++)
      |                            ~            ^~
      |                                         )
/in/foo.c:21:33: error: expected expression before '}' token
   21 |                                 }
      |                                 ^
/in/foo.c:5:25: warning: variable 'b' set but not used [-Wunused-but-set-variable]
    5 |         int a[2][3]={0},b[i][j]={0};
      |                         ^

信息

递交者
类型
自测
语言
C
递交时间
2025-11-24 16:40:10
评测时间
2025-11-24 16:40:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes