记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:10: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   11 |          for(int j=0;j<2;j++);{
      |          ^~~
/in/foo.c:11:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   11 |          for(int j=0;j<2;j++);{
      |                               ^
/in/foo.c:12:23: error: 'j' undeclared (first use in this function)
   12 |                  b[i][j]=a[i][j]
      |                       ^
/in/foo.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:26: error: 'a' undeclared (first use in this function)
   12 |                  b[i][j]=a[i][j]
      |                          ^
/in/foo.c:12:33: error: expected ';' before '}' token
   12 |                  b[i][j]=a[i][j]
      |                                 ^
      |                                 ;
   13 |                  }
      |                  ~               
/in/foo.c:15:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   15 |  for(int i=0;i<3;i++);{
      |  ^~~
/in/foo.c:15:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   15 |  for(int i=0;i<3;i++);{
      |                       ^
/in/foo.c:17:32: error: 'i' undeclared (first use in this function)
   17 |                  printf("%d",b[i][j]);
      |                                ^
/in/foo.c:18:47: warning: zero-length gnu_printf format string [-Wformat-zero-length]
   18 |                                 if(j<1)printf("");
      |                                               ^~
/in/foo.c:4:16: warning: variable 'b' set but not used [-Wunused-but-set-variable]
    4 | {int arr[2][3],b[3][2];
      |                ^
/in/foo.c: At top level:
/in/foo.c:22:49: error: expected identifier or '(' before 'return'
   22 |                                                 return 0;
      |                                                 ^~~~~~
/in/foo.c:23:49: error: expected identifier or '(' before '}' token
   23 |                                                 }
      |                                                 ^

信息

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