记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:15: error: 'j' undeclared (first use in this function)
   12 |     transpose[j][i]=matrix[i][j];}
      |               ^
/in/foo.c:12:15: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:13: warning: variable 'transpose' set but not used [-Wunused-but-set-variable]
    5 |         int transpose[3][2];
      |             ^~~~~~~~~
/in/foo.c: At top level:
/in/foo.c:14:16: error: expected declaration specifiers or '...' before string constant
   14 |         printf("\n");
      |                ^~~~
/in/foo.c:15:5: error: expected identifier or '(' before 'for'
   15 |     for(int i=0;i<3;i++){
      |     ^~~
/in/foo.c:15:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   15 |     for(int i=0;i<3;i++){
      |                  ^
/in/foo.c:15:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   15 |     for(int i=0;i<3;i++){
      |                      ^~
/in/foo.c:23:5: error: expected identifier or '(' before 'return'
   23 |     return 0;
      |     ^~~~~~
/in/foo.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^

信息

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