0

I am having trouble with the evaluate class. An error message is coming back for the pow(x, degree). I have included the cmath library and have cast x and degree into double. Any hints or tips would be greatly appreciated. I have tested the program without the pow(x, degree) and it works.

```
int Poly::evaluate(int x){
int sum=0;
static_cast<double>(x);
static_cast<double>(degree);
for (int i=0; i<degree; i++) {
sum+=coefs[i]*(pow(x, degree));//here is where I am getting the error
}
return sum;
}
```