foo.c: In function 'main':
foo.c:6:7: error: stray '\357' in program
int b;
^
foo.c:6:8: error: stray '\274' in program
int b;
^
foo.c:6:9: error: stray '\233' in program
int b;
^
foo.c:7:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
int i=0;
^~~
foo.c:10:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d",a[i]);
~^ ~~~~
foo.c:11:6: error: redefinition of 'i'
int i=0;
^
foo.c:7:6: note: previous definition of 'i' was here
int i=0;
^
foo.c:12:11: error: stray '\' in program
if(a[i]==\0)
^
foo.c:13:3: error: 'b' undeclared (first use in this function)
b=a[i-1];
^
foo.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",a[i]);
^~~~~~~~~~~~~~~~
foo.c:27:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务