remove pow in c++