记录详情

Compile Error

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

信息

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