Frustrating error message

Hi all, i am new to the forum and a bit of a noob with c language.
I am getting the old "exit status 1
expected ')' before numeric constant" message when i am trying to verify the below code.
It's a very simple line and i cannot for the life of me see what is wrong with it.
Anyone got any clues?
ThanksPreformatted text

//GLOBALS
int data= A1; //thermistor
//What step are we on
int currentStep (0);
int Mistakesmade (0);
int i;
bool unSolved(puzNbr);

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println(FILE DATE);// Monitor for de-bugging

//initialise pins that have puzzles attached
for (i=0; i<puzNbr; i++1;) // error msg appears to be here

Right there?

i++
Or
i += 1

Please remember to use code tags when posting code

for (i=0; i<puzNbr; i++;) // wrong form.

for (i=0; i<puzNbr; i++) //

Remove the last semicolon. It must be written in the following format

for (i=0; i<puzNbr; i++)

No semicolon there

Hi, many thanks!

Solved!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.