/in/foo.c: In function 'main':
/in/foo.c:11:14: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
11 | term=pow(-1,n+1)/(2*n-1);
| ^~~
/in/foo.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
1 | #include <stdio.h>
+++ |+#include <math.h>
2 |
/in/foo.c:11:14: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
11 | term=pow(-1,n+1)/(2*n-1);
| ^~~
/in/foo.c:11:14: note: include '<math.h>' or provide a declaration of 'pow'
/in/foo.c:14:15: warning: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
14 | while(fabs(term)>=1e-8);
| ^~~~
/in/foo.c:14:15: note: include '<math.h>' or provide a declaration of 'fabs'
/in/foo.c:14:15: warning: incompatible implicit declaration of built-in function 'fabs' [-Wbuiltin-declaration-mismatch]
/in/foo.c:14:15: note: include '<math.h>' or provide a declaration of 'fabs'