don't forget -lm flag
screenshots