I have a simple C code that uses 'pow' function pow(x,y) . declared integer variables total, x, y with given values for x and y. I should be expecting a value of 8. See error details below upon executing this.

Code:

#include <stdio.h>
#include <math.h>
int main(void)
{
int total, x, y;
x = 2;
y = 3;
pow (x, y); // expecting the value of x raise to y is "8"
printf("The total value of x and y is%d:\n", total);
return 0;
}
/tmp/ccMV9JVl.o(.text+0x2c): In function `main':
: undefined reference to `pow'
collect2: ld returned 1 exit status