Programing a sheild

I have a Rover shield with a Arduino Uno. I am using code that I copy and pasted and I get an error when trying to compile. All connections are good because I was able to compile the IR remote code. This is a sample of what I cannot compile.

[code]
/* Copy and paste the code below into the Arduino software */

int E1 = 6; //M1 Speed Control
int E2 = 5; //M2 Speed Control
int M1 = 8; //M1 Direction Control
int M2 = 7; //M2 Direction Control

void setup()

{
int i;
for(i=5;i<=8;i++)
pinMode(i, OUTPUT);
Serial.begin(9600);
}

void loop()

{
int leftspeed = 255; //255 is maximum speed
int rightspeed = 255;
analogWrite (E1,255);
digitalWrite(M1,LOW);
analogWrite (E2,255);
digitalWrite(M2,LOW);
delay(100);

}[/code]

The code you presented here does not seem to have any compile errors. What is the error you are getting?

Stray ‘’ in program error. Another sample program, IRemote, compiles. The program that wont load is used to control the 2 dc motors in the tractor. The program that wont load make both motor run. I nay just lisd the IRemote code and use a remote controller.