You don't indicate what help you need.
Line 12: series() returns a double. Why are you assigning it to an int?
Line 25: pow() is undefined because you haven't included the <cmath> header.
Hello newyork23,
In addition to what AbstractionAnon said about line 12 you will also have a problem with "n" in lines 5 and 17.
Hope that helps,
Andy
Last edited on