Hi everybody! I got a problem with the code below. It should find the maximum and minimum values in an array, but it doesn't work cause of an error in line seven: [Error] expected unqualified-id before '{' token. I have no clue what it means and how to resolve it. Can anyone help me? Thank you!
A good tip to keep in mind is if the compiler tells you the line they found an error at, you should check the lines above and below it as well. And I would highly suggest reading up on syntax of a function body before you try to do something else with your code.
Hint: a typical function and its definition goes like this...