foo.c: In function 'main':
foo.c:5:9: error: stray '\357' in program
int n,k,a[10000]={0};
^
foo.c:5:10: error: stray '\274' in program
int n,k,a[10000]={0};
^
foo.c:5:11: error: stray '\214' in program
int n,k,a[10000]={0};
^
foo.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
int n,k,a[10000]={0};
^
foo.c:9:15: error: 'a' undeclared (first use in this function)
scanf("%d",&a[i]);
^
foo.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:11:14: error: 'k' undeclared (first use in this function)
scanf("%d",&k);
^
foo.c: In function 'insert':
foo.c:25:13: warning: unused variable 'y' [-Wunused-variable]
int x=i, y;
^
foo.c: In function 'main':
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c: In function 'insert':
foo.c:31:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[Hydro](https://hydro.ac)提供评测服务