记录详情

Compile Error

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

信息

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