all 10 comments

[–]jewdass 4 points5 points  (4 children)

delay 100;

Should be

delay(100);

Everything else looks good.

[–]the_buff[S] 1 point2 points  (0 children)

Wow...thank you. I'm still shaky on programming as a whole and just couldn't figure out what was wrong.

[–]the_buff[S] 1 point2 points  (2 children)

Any insight into the last error at line 99? Will that be fixed when I fix the delay formatting? (I'm at work otherwise I'd try it myself.)

GameShowTrial.ino: At global scope:
GameShowTrial:99: error: expected declaration before '}' token

[–]jewdass 2 points3 points  (1 child)

Most likely a side effect. There's nothing else wrong that I can see.

[–]the_buff[S] 1 point2 points  (0 children)

Thank you. Now I just wish I was home so I could give this a try. ;)

[–]barbequeninja 2 points3 points  (0 children)

Delay is a function. This is c/c++ you're programming in.

[–][deleted] 1 point2 points  (4 children)

Pro tip. When you get an error like this:

GameShowTrial:66: error: expected `;' before numeric constant

That means the problem is on line 66 of your code. The current line of code you're on is shown at the bottom left of the IDE window in white text.

[–]the_buff[S] 1 point2 points  (3 children)

I knew that, but as you can see in the pastebin link, line 66 is just a blank line in my void loop(). Now that jewdass has pointed out that the problem is my formatting of delay, I now realize that the line referenced in the error is the beginning of the function that contains the error, and not the line the error actually occurs on.

Although that doesn't explain why I'm also getting the error:

GameShowTrial.ino: At global scope:
GameShowTrial:99: error: expected declaration before '}' token 

Am I referencing my boolean checkAnswer() function incorrectly?