結果 : implement pow function in cpp