expected primary expression before int

digitalWrite (int thisled = 0; leds [thisled], HIGH);

That's not how digitalWrite works. What were you hoping to accomplish with that? digitalWrite just takes a pin number and a state, either LOW or HIGH.