pow(x,n) cpp accepted