I am studying C++ by book and was trying to test simple coding for a looped game combat. A switch inside a while loop.

```
damage = greatsword[0] + player[1] - enemy[2]; endl;

```

> 
> error: statement cannot resolve address of overloaded function|
> 
> 
> 

I have this error in 4 different code lines and in each one it has 'damage' so I assume its some problem with that. I have damage declared as an int and set to 0 before trying to change it to the attack value. I can provide more of the code if needed. I also tried changing the name from x to dmg to see if that was the problem