/in/foo.c: In function 'main':
/in/foo.c:6:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
printf("%d,%d",&n,&k);
^
/in/foo.c:6:14: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=]
printf("%d,%d",&n,&k);
^
/in/foo.c:7:21: error: stray '\357' in program
for(int i=0;i<n;i++)
^
/in/foo.c:7:22: error: stray '\274' in program
for(int i=0;i<n;i++)
^
/in/foo.c:7:23: error: stray '\211' in program
for(int i=0;i<n;i++)
^
/in/foo.c:8:3: error: expected ')' before '{' token
{
^
/in/foo.c:11:22: error: stray '\357' in program
for(int i=0;i<n;i++)
^
/in/foo.c:11:23: error: stray '\274' in program
for(int i=0;i<n;i++)
^
/in/foo.c:11:24: error: stray '\211' in program
for(int i=0;i<n;i++)
^
/in/foo.c:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n;i++)
^~~
/in/foo.c:30:0: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
}
/in/foo.c:30:1: error: expected declaration or statement at end of input
}
^
/in/foo.c:5:25: warning: unused variable 'temp' [-Wunused-variable]
int a[1000],n,i,j,k,temp;
^~~~
/in/foo.c:5:21: warning: unused variable 'j' [-Wunused-variable]
int a[1000],n,i,j,k,temp;
^
/in/foo.c:5:19: warning: unused variable 'i' [-Wunused-variable]
int a[1000],n,i,j,k,temp;
^
/in/foo.c:5:9: warning: unused variable 'a' [-Wunused-variable]
int a[1000],n,i,j,k,temp;
^