[![enter image description here][1]][1]

[1]: https://i.stack.imgur.com/M9q3V.png if I put the semicolon im told i need "(" on line 8. I have a curly brace there. its before a "do while" loop after i declared a variable named "change" but there should be no semicolon after my main function. even if all else goes well im still getting this error

1 Answer 1


You'll need to show your code for your main function to be point out the exact error, but you have a problem with your function declaration, so it thinks you are declaring a function prototype instead of a function. Check your curly braces and your parentheses and ensure that they are a) in the appropriate locations and b) paired up correctly.

If that helps, feel free to click the check mark and accept the answer. If not, you'll need to upload your code so I can point out the place where the error is.

  • fixed it thank you
    – Aamon Van
    Mar 10, 2021 at 20:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .