foo.c: In function 'Search':
foo.c:8:4: error: 'xi' undeclared (first use in this function); did you mean 'xb'?
8 | xi;
| ^~
| xb
foo.c:8:4: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:9: error: stray '\357' in program
9 | break;
| ^
foo.c:9:10: error: stray '\274' in program
9 | break;
| ^
foo.c:9:11: error: stray '\233' in program
9 | break;
| ^
foo.c:9:9: error: expected ';' before '}' token
9 | break;
| ^
| ;
10 | }
| ~
foo.c: In function 'main':
foo.c:15:17: error: stray '\357' in program
15 | int a[1000]={0};
| ^
foo.c:15:18: error: stray '\274' in program
15 | int a[1000]={0};
| ^
foo.c:15:19: error: stray '\233' in program
15 | int a[1000]={0};
| ^
foo.c:16:3: error: expected ',' or ';' before 'int'
16 | int n,x,i;
| ^~~
foo.c:17:14: error: 'n' undeclared (first use in this function)
17 | scanf("%d",&n);
| ^
foo.c:18:6: error: 'i' undeclared (first use in this function)
18 | for(i=0;i<n;i++)
| ^
foo.c:19:15: error: 'x' undeclared (first use in this function)
19 | scanf("%d",&x);
| ^
[Hydro](https://hydro.ac)提供评测服务