/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 | }
| ^