foo.c: In function 'main':
foo.c:6:18: error: 'n' undeclared (first use in this function)
6 | printf("%d,%d",&n,&k);
| ^
foo.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:21: error: stray '\357' in program
7 | for(int i=0;i<n;i++)
| ^
foo.c:7:22: error: stray '\274' in program
7 | for(int i=0;i<n;i++)
| ^
foo.c:7:23: error: stray '\211' in program
7 | for(int i=0;i<n;i++)
| ^
foo.c:7:21: error: expected ')' before '{' token
7 | for(int i=0;i<n;i++)
| ~ ^
| )
8 | {
| ~
foo.c:11:22: error: stray '\357' in program
11 | for(int i=0;i<k;i++)
| ^
foo.c:11:23: error: stray '\274' in program
11 | for(int i=0;i<k;i++)
| ^
foo.c:11:24: error: stray '\211' in program
11 | for(int i=0;i<k;i++)
| ^
foo.c:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
7 | for(int i=0;i<n;i++)
| ^~~
foo.c:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
29 | }
|
foo.c:29:1: error: expected declaration or statement at end of input
29 | }
| ^
foo.c:5:23: warning: unused variable 'temp' [-Wunused-variable]
5 | int a[1000],i,j,k,temp;
| ^~~~
foo.c:5:19: warning: unused variable 'j' [-Wunused-variable]
5 | int a[1000],i,j,k,temp;
| ^
foo.c:5:17: warning: unused variable 'i' [-Wunused-variable]
5 | int a[1000],i,j,k,temp;
| ^
foo.c:5:9: warning: unused variable 'a' [-Wunused-variable]
5 | int a[1000],i,j,k,temp;
| ^
[Hydro](https://hydro.ac)提供评测服务