Per calcolare le potenze usa std:ow dell'header <cmath>, per la radice usa std::sqrt dello stesso header.