/in/foo.c: In function 'main':
/in/foo.c:8:24: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
8 | int limit=(int)sqrt(n);
| ^~~~
/in/foo.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
1 | #include <stdio.h>
+++ |+#include <math.h>
2 |
/in/foo.c:8:24: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
8 | int limit=(int)sqrt(n);
| ^~~~
/in/foo.c:8:24: note: include '<math.h>' or provide a declaration of 'sqrt'