/in/foo.c: In function 'main':
/in/foo.c:9:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
printf("%d,%d",&n,&k)
^
/in/foo.c:9:15: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=]
printf("%d,%d",&n,&k)
^
/in/foo.c:10:2: error: expected ';' before '}' token
}
^
/in/foo.c:16:5: error: 'temp' undeclared (first use in this function)
temp=a[j];
^~~~
/in/foo.c:16:5: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:21:6: error: 'i' undeclared (first use in this function)
for(i=0;i<n;++)
^
/in/foo.c:21:16: error: expected expression before ')' token
for(i=0;i<n;++)
^