foo.c: In function 'output':
foo.c:13:15: error: expected ';' before '}' token
13 | printf("\n")
| ^
| ;
14 | }
| ~
foo.c: In function 'main':
foo.c:27:3: warning: implicit declaration of function 'fun' [-Wimplicit-function-declaration]
27 | fun(a,n);
| ^~~
foo.c:29:5: warning: implicit declaration of function 'search' [-Wimplicit-function-declaration]
29 | m=search(a,n,x);
| ^~~~~~
foo.c:25:21: warning: variable 'm' set but not used [-Wunused-but-set-variable]
25 | int i,n,a[9999],x,m;
| ^
foo.c:25:7: warning: unused variable 'i' [-Wunused-variable]
25 | int i,n,a[9999],x,m;
| ^
foo.c: In function 'input':
foo.c:4:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
4 | int n; scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:28:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d",&x);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务