im coding a guessing game but got an error [Answered]
does anyone know how to fix this error
![](https://utfs.io/f/7a2bf108-24d6-4bec-a141-410be8a63eaa-1nq2cb.png)
3 Replies
on line 20 you are using a semicolon which basically ends that scope, then you are starting a new scope which is unrelated to the if statement scope on line 20
remove the semicolon
I believe the warning already tells you you probably don't want a semicolon there
✅ This post has been marked as answered!