Add missing <cmath> #includes.