SyntaxFix
Write A Post
Hire A Developer
Questions
Because you didn't tell the linker about location of math library. Compile with gcc test.c -o test -lm