/in/foo.c: In function 'main':
/in/foo.c:6:2: error: 'cout' undeclared (first use in this function)
6 | cout<<"请输入矩阵规模";
| ^~~~
/in/foo.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:6:31: error: stray '\357' in program
6 | cout<<"请输入矩阵规模";
| ^
/in/foo.c:6:32: error: stray '\274' in program
6 | cout<<"请输入矩阵规模";
| ^
/in/foo.c:6:33: error: stray '\233' in program
6 | cout<<"请输入矩阵规模";
| ^
/in/foo.c:6:31: error: expected ';' before 'cin'
6 | cout<<"请输入矩阵规模";
| ^
| ;
7 | cin>>n;
| ~~~
/in/foo.c:8:2: error: unknown type name 'string'; did you mean 'stdin'?
8 | string a[n][n];
| ^~~~~~
| stdin
/in/foo.c:9:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
9 | for(int i=0,i<n;i++)
| ^
/in/foo.c:9:21: error: expected ';' before ')' token
9 | for(int i=0,i<n;i++)
| ^
| ;
/in/foo.c:10:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
10 | { for(int j=0,j<n.j++)
| ^
/in/foo.c:16:4: error: expected expression before '}' token
16 | }
| ^
/in/foo.c:16:4: error: expected expression before '}' token
/in/foo.c:16:4: error: expected expression before '}' token
/in/foo.c:10:14: warning: unused variable 'j' [-Wunused-variable]
10 | { for(int j=0,j<n.j++)
| ^