why i can't run the program with sqrt (a)
code :
#include <stdio.h>
1 #include <math.h>
2 int main ()
3 {
4 int a, b, c;
5 scanf("%d %d ", &a, &b);
6 c = sqrt(a) + b;
7 printf("%d", c);
8 return 0;
9 }
error :
/usr/bin/ld: /tmp/ccfUQsrW.o: in function `main':
test.c:(.text+0x42): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
if I compile the program
:!gcc test.c -o ./test -lm
then the program does not show anything