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:11: error: lvalue required as left operand of assignment
getchar()=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:27:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务