When compiling you get:
undefined symbol: pow
Add the following option when compiling:
-lm
Source:Codingpointer.com - C-Tutorial - C program undefined reference to pow error