记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:10: error: 'i' undeclared (first use in this function)
    4 | { int (a[i][j],int i,int j),int (a[j][i],int j,int i);
      |          ^
/in/foo.c:4:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:4:13: error: 'j' undeclared (first use in this function)
    4 | { int (a[i][j],int i,int j),int (a[j][i],int j,int i);
      |             ^
/in/foo.c:4:15: error: expected ')' before ',' token
    4 | { int (a[i][j],int i,int j),int (a[j][i],int j,int i);
      |               ^
      |               )
/in/foo.c:5:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |   for(i=0,i<2,i++)
      |          ^
/in/foo.c:5:14: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |   for(i=0,i<2,i++)
      |              ^
/in/foo.c:5:18: error: expected ';' before ')' token
    5 |   for(i=0,i<2,i++)
      |                  ^
      |                  ;
/in/foo.c:5:18: error: expected expression before ')' token
/in/foo.c:6:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    6 |          { for(j=0,j<3,j++)
      |                   ^
/in/foo.c:6:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    6 |          { for(j=0,j<3,j++)
      |                       ^
/in/foo.c:6:27: error: expected ';' before ')' token
    6 |          { for(j=0,j<3,j++)
      |                           ^
      |                           ;
/in/foo.c:6:27: error: expected expression before ')' token
/in/foo.c:7:52: error: 'a' undeclared (first use in this function)
    7 |               { scanf("a[i][j]=%d,\t3,,&a[i][j]\n",a[i][j])
      |                                                    ^
/in/foo.c:7:60: error: expected ';' before '}' token
    7 |               { scanf("a[i][j]=%d,\t3,,&a[i][j]\n",a[i][j])
      |                                                            ^
      |                                                            ;
    8 |                   }
      |                   ~                                         
/in/foo.c:10:18: error: expected ';' before 'printf'
   10 |   a[j][i]=a[i][j]
      |                  ^
      |                  ;
   11 |   printf("a[j][i]=%d,\t3,,&a[j][i]\n",a[j][i])
      |   ~~~~~~          
/in/foo.c:12:3: error: expected declaration or statement at end of input
   12 |   return 0
      |   ^~~~~~

信息

递交者
类型
自测
语言
C
递交时间
2025-11-29 17:33:02
评测时间
2025-11-29 17:33:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes