foo.c: In function 'FindMin':
foo.c:5:9: warning: implicit declaration of function 'fot' [-Wimplicit-function-declaration]
5 | fot(int i=0;i<n;i++)
| ^~~
foo.c:5:13: error: expected expression before 'int'
5 | fot(int i=0;i<n;i++)
| ^~~
foo.c:5:29: error: expected ';' before '{' token
5 | fot(int i=0;i<n;i++)
| ^
| ;
6 | {
| ~
foo.c:4:13: warning: unused variable 'min' [-Wunused-variable]
4 | int min=a[0];
| ^~~
foo.c: In function 'main':
foo.c:17:13: error: expected expression before 'int'
17 | fot(int i=0;i<n;i++)
| ^~~
foo.c:17:29: error: expected ';' before '{' token
17 | fot(int i=0;i<n;i++)
| ^
| ;
18 | {
| ~
foo.c:22:21: error: 'min' undeclared (first use in this function); did you mean 'main'?
22 | printf("%d",min)
| ^~~
| main
foo.c:22:21: note: each undeclared identifier is reported only once for each function it appears in
foo.c:22:25: error: expected ';' before 'return'
22 | printf("%d",min)
| ^
| ;
23 | return 0;
| ~~~~~~
foo.c:15:13: warning: unused variable 'a' [-Wunused-variable]
15 | int a[10000];
| ^
foo.c: In function 'FindMin':
foo.c:11:9: warning: control reaches end of non-void function [-Wreturn-type]
11 | }
| ^
[Hydro](https://hydro.ac)提供评测服务