expected unqualified-id before numeric constant

I don't know why this message arrive, I look at many topics and forum but that's never the same problem. If you can help me... here's the code ( It's incomplete)

int LedPinSq1 = 5;
int LedPinSq2 = 6;
int LedPinSq3 = 7;
int LedPinSq4 = 8;
int LedPinW1R1 = 1;
int LedPinW2B1 = 2;
int LedPinAnR = 10;
int LedPinAnB = 11;
void setup() {
pinMode(LedPinW1R1, OUTPUT);
pinMode(LedPinW2B1, OUTPUT);
pinMode(LedPinSq1, OUTPUT);
pinMode(LedPinSq2, OUTPUT);
pinMode(LedPinSq3, OUTPUT);
pinMode(LedPinSq4, OUTPUT);
pinMode(LedPinAnR, OUTPUT);
pinMode(LedPinAnB, OUTPUT);

}

void loop() {
random (3);
digitalWrite (LedPinW1R1,HIGH);
digitalWrite (LedPinW1R1,HIGH);
analogWrite(10, 255);
analogWrite(11, 255);
digitalWrite (LedPinSq1,HIGH);
digitalWrite (LedPinSq2,HIGH);
digitalWrite (LedPinSq3,HIGH);
digitalWrite (LedPinSq4,HIGH);
}
{void 1(){
digitalWrite (LedPinW1R1,HIGH);
digitalWrite (LedPinW1R1,HIGH);
{void Leds1()

}
{void Leds2()

}
{void Leds3()

}
{void 2()

}
{void Analog1 ()
analogWrite(10, 255);
analogWrite(11, 0);
delay(300);
analogWrite(10, 191);
analogWrite(11, 64);
delay(300);
analogWrite(10, 128);
analogWrite(11, 128);
delay(300);
analogWrite(10, 64);
analogWrite(11, 191);
delay(300);
analogWrite(10, 0);
analogWrite(11, 255);
}
{void Analog2 ()
analogWrite(10, 0);
analogWrite(11, 255);
delay(300);
analogWrite(10, 64);
analogWrite(11, 191);
delay(300);
analogWrite(10, 128);
analogWrite(11, 128);
delay(300);
analogWrite(10, 191);
analogWrite(11, 64);
delay(300);
analogWrite(10, 255);
analogWrite(11, 0);
}
{void 3()

}
{void Panel01 ()
digitalWrite (LedPinSq1,HIGH);
digitalWrite (LedPinSq2,LOW);
digitalWrite (LedPinSq3,HIGH);
}
{void Panel02 ()
digitalWrite (LedPinSq2,LOW);
digitalWrite (LedPinSq3,HIGH);
digitalWrite (LedPinSq4,HIGH);
}
{void Panel03 ()
digitalWrite (LedPinSq3,LOW);
digitalWrite (LedPinSq4,LOW);
digitalWrite (LedPinSq1,HIGH);
}
{void Panel04 ()
digitalWrite (LedPinSq4,HIGH);
digitalWrite (LedPinSq1,HIGH);
digitalWrite (LedPinSq2,HIGH);
}

Here's my answer - it's incomplete too{void 1(){

But at least it was in code tags

Yep, many misplaced { at the beginning of functions, when they should be like so:

void name(){
// stuff
}

There's an even bigger one (hint) than that!

Try this format:

int LedPinSq1 = 5;
int LedPinSq2 = 6;
int LedPinSq3 = 7;
int LedPinSq4 = 8;
int LedPinW1R1 = 1;
int LedPinW2B1 = 2;
int LedPinAnR = 10;
int LedPinAnB = 11;

void setup() {
  pinMode(LedPinW1R1, OUTPUT);
  pinMode(LedPinW2B1, OUTPUT);
  pinMode(LedPinSq1, OUTPUT);
  pinMode(LedPinSq2, OUTPUT);
  pinMode(LedPinSq3, OUTPUT);
  pinMode(LedPinSq4, OUTPUT);
  pinMode(LedPinAnR, OUTPUT);
  pinMode(LedPinAnB, OUTPUT);

}

void loop() {
  random (3);
  digitalWrite (LedPinW1R1, HIGH);
  digitalWrite (LedPinW1R1, HIGH);
  analogWrite(10, 255);
  analogWrite(11, 255);
  digitalWrite (LedPinSq1, HIGH);
  digitalWrite (LedPinSq2, HIGH);
  digitalWrite (LedPinSq3, HIGH);
  digitalWrite (LedPinSq4, HIGH);
}

void a1() {
  digitalWrite (LedPinW1R1, HIGH);
  digitalWrite (LedPinW1R1, HIGH);
}

void Leds1() {

}

void Leds2() {

}

void Leds3() {

}

void a2() {

}

void Analog1() {
  analogWrite(10, 255);
  analogWrite(11, 0);
  delay(300);
  analogWrite(10, 191);
  analogWrite(11, 64);
  delay(300);
  analogWrite(10, 128);
  analogWrite(11, 128);
  delay(300);
  analogWrite(10, 64);
  analogWrite(11, 191);
  delay(300);
  analogWrite(10, 0);
  analogWrite(11, 255);
}

void Analog2 () {
  analogWrite(10, 0);
  analogWrite(11, 255);
  delay(300);
  analogWrite(10, 64);
  analogWrite(11, 191);
  delay(300);
  analogWrite(10, 128);
  analogWrite(11, 128);
  delay(300);
  analogWrite(10, 191);
  analogWrite(11, 64);
  delay(300);
  analogWrite(10, 255);
  analogWrite(11, 0);
}

void a3() {

}
void Panel01 () {
  digitalWrite (LedPinSq1, HIGH);
  digitalWrite (LedPinSq2, LOW);
  digitalWrite (LedPinSq3, HIGH);
}

void Panel02 () {
  digitalWrite (LedPinSq2, LOW);
  digitalWrite (LedPinSq3, HIGH);
  digitalWrite (LedPinSq4, HIGH);
}

void Panel03 () {
  digitalWrite (LedPinSq3, LOW);
  digitalWrite (LedPinSq4, LOW);
  digitalWrite (LedPinSq1, HIGH);
}

void Panel04 () {
  digitalWrite (LedPinSq4, HIGH);
  digitalWrite (LedPinSq1, HIGH);
  digitalWrite (LedPinSq2, HIGH);
}

You had a function name or 2 starting with a number, can't do that.
Also, you were completely missing a closing bracket, and many were placed incorrectly as Crossroads stated.

In the IDE you can go to Tools>autoformat to help you find some of these errors.

Post code in between code tags...first icon on the edit template </> above.

-fab

theo, the issue is that you have no idea how the C language is structured, you are just guessing and trying to make something that looks right.

Go do a basic tutorial on the C++ language.

http://www.cplusplus.com/doc/tutorial/

Some of it is not applicable for arduino programming, but that's a minor issue compared to the fact that you simply cannot program in C at all.

thank you, it works fine now, understand way better the C++ language :wink: