Per calcolare le potenze usa std:ow dell'header <cmath>, per la radice usa std::sqrt dello stesso header.
Per calcolare le potenze usa std:ow dell'header <cmath>, per la radice usa std::sqrt dello stesso header.
Amaro C++, il gusto pieno dell'undefined behavior.