Main.c:14:5: error: redefinition of 'fun1'
14 | int fun1(int n){
| ^~~~
Main.c:3:5: note: previous definition of 'fun1' with type 'int(int)'
3 | int fun1(int n){
| ^~~~
Main.c: In function 'main':
Main.c:30:16: warning: implicit declaration of function 'fun2'; did you mean 'fun1'? [-Wimplicit-function-declaration]
30 | int mon2 = fun2(n);
| ^~~~
| fun1
Main.c:31:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
31 | printf("%d",fmin(mon1,mon2));
| ~^ ~~~~~~~~~~~~~~~
| | |
| | double
| int
| %f