I'm a beginner and I've been working on the code for selection sort. The code seems right: enter image description here

But whenever I try to compile helpers.c I keep getting this error and I can't move forward:

enter image description here

Could anyone please explain what this error message means and how I can fix it (it seems to me that it has something to do with the braces, but I'm certain that I don't have any unnecessary braces). I would really appreciate it.

1 Answer 1

           void sort(int values[], int n);

See the signature line above? Get rid of the semicolon.

That doesn't mean that you don't have other issues, but that's what's causing this one.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

  • Thanks for the help, deleting the semicolon did the trick. Commented Dec 11, 2016 at 5:42

You must log in to answer this question.

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