记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:23: error: 'i' undeclared (first use in this function)
    5 |         scanf("%d",&a[i][j]);
      |                       ^
/in/foo.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:26: error: 'j' undeclared (first use in this function)
    5 |         scanf("%d",&a[i][j]);
      |                          ^
/in/foo.c:9:23: error: 'o' undeclared (first use in this function)
    9 |                 for(j=o;j<=2;j++)
      |                       ^
/in/foo.c:11:37: error: 'n' undeclared (first use in this function)
   11 |                         scanf("%d",&n);
      |                                     ^
/in/foo.c:12:25: error: 'b' undeclared (first use in this function)
   12 |                         b[i][j]=a[j][i];
      |                         ^
/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:6:17: warning: unused variable 'temp' [-Wunused-variable]
    6 |         int i,j,temp=0;
      |                 ^~~~

信息

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