Use std::cbrt instead of pow(x, 1/3)