Main.c:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
include
^
Main.c: In function ‘main’:
Main.c:14:2: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
scanf("%f",&x);
^~~~~
Main.c:14:2: warning: incompatible implicit declaration of built-in function ‘scanf’
Main.c:14:2: note: include ‘’ or provide a declaration of ‘scanf’
Main.c:15:2: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("%f",f(x));
^~~~~~
Main.c:15:2: warning: incompatible implicit declaration of built-in function ‘printf’
Main.c:15:2: note: include ‘’ or provide a declaration of ‘printf’
Main.c:15:14: warning: implicit declaration of function ‘f’ [-Wimplicit-function-declaration]
printf("%f",f(x));
^
Main.c:15:11: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
printf("%f",f(x));
~^ ~~~~
%d