0

Hi all I am currently getting this error which i have come to associate with missing curly braces and semicolons, yet I've not managed to spot the error.

fifteen.c:169:46: error: expected ';' after expression sboard[i][n] = ((size * size) - 1)) - count;

http://pastebin.com/c35pG9B2 ^

0

It's also associated with mismatched parentheses.

[Edit = counts added]

sboard[i][n] = ((size * size) - 1)) - count;

I see 2 left parentheses and 3 right parentheses.

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

3
  • yeah i had a look but i didn't see any myself – Andy Stevens Dec 14 '16 at 21:55
  • Uhhuh. Maybe you should count them again. See edited answer. In the IDE, you can also click on a parenthesis to see where the matching parenthesis is located. – Cliff B Dec 14 '16 at 22:06
  • skipped over the one in the middle whoops. thanks – Andy Stevens Dec 14 '16 at 22:23

You must log in to answer this question.

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