Erreur unqualified-id

I'am starting...
I do a small program and it say me:

"error: expected unqualified-id before 'while' "

Please help me? I'm looking at the error, but I don't find it.
so, this is the program:

/*Red Led lighting 5 times,
*then yellow Led light.
*/
int RedLed =5;
int YellowLed =13;
int N =0;
void setup()
{
pinMode (RedLed, OUTPUT);
pinMode (YellowLed, OUTPUT);
}
while(N<6)
{
void loop()
digitalWrite (YellowLed, LOW);
digitalWrite (RedLed, HIGH);
delay ( 3000);
digitalWrite (RedLed, LOW);
delay (1500);
N++;
}
void loop()
digitalWrite (YellowLed, HIGH);

Thanks for answer.

This is the English side of the forum.

while(N<6)
{
void loop()
digitalWrite (YellowLed, LOW);
digitalWrite  (RedLed, HIGH);
delay ( 3000);
digitalWrite (RedLed, LOW);
delay (1500);
N++;
}
void loop()

Un seul "loop()" par sketch.

while(N<6)
{
void loop()

Code est interdit au dehors des fonctions.

(je ne suis pas fort en francais technique)

OK. I understand.
Thanks.