Go Down

Topic: for function does not highlite in editor and error message is redeclaration of i (Read 21 times) previous topic - next topic

mikecole271

the inbuilt for function does not highlite in the editor and i get this error message.  even though sketch is not complete i would expect this funcion to hilite.  i think the while funcion also does not hilite.  i am just trying to compile this and it fails.  i am a new user so i am really confused


 

Arduino: 1.6.7 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\mikepc\Documents\Arduino\sketch_feb13_red_yellow\sketch_feb13_red_yellow.ino: In function 'void loop()':

sketch_feb13_red_yellow:17: error: expected initializer before '<' token

   for (int i=0, i<11, i++)

                  ^

sketch_feb13_red_yellow:17: error: expected ';' before '<' token

sketch_feb13_red_yellow:17: error: expected primary-expression before '<' token

sketch_feb13_red_yellow:17: error: expected ';' before ')' token

   for (int i=0, i<11, i++)

                          ^

exit status 1
expected initializer before '<' token

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.


CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy