there are 3 different versions of pow. One takes float, one takes double, and another takes longdouble. You are using ints, which is neither of those three, so the compiler needs to cast your ints into a different type. However it doesn't know which type you want, and so doesn't know which version of pow to call.
The solution here is to not use ints for number, but instead use double or float. OR, you can explicitly tell the compiler which one you want by casting:
PS: don't you just love it when examples from textbooks fail to compile? I swear I don't understand how those people have jobs. Don't they test this stuff?