#include<math.h> -> #include<cmath>