Rover Code

I keep getting the drive commands weren't declared in the scope and that i need a initializer before digital Write. Wat do?

void driveForward();
digitalWrite(9, HIGH);
digitalWrite(0, LOW);
analogWrite(0, 0);
pinMode(9, OUTPUT);
pinMode(0, OUTPUT);
void turnLeft();
digitalWrite(9, HIGH);
digitalWrite(0, LOW);
analogWrite(2, 0);
pinMode(1, OUTPUT);
pinMode(8 OUTPUT);
void turnRight();
digitalWrite(9, HIGH);
digitalWrite(0, LOW);
analogWrite(0, 0);
pinMode(9, OUTPUT);
pinMode(0, OUTPUT);

void setup()
{
driveForward();
delay(1000);

}

void loop();
{
driveForword();
delay(1);
turnLeft();
driveForword();
delay(1);
turnRight();
driveForword();
delay(1);
turnRight();
delay(100000000000000000000000000000000000093845790834750293845709345702938457209384572398457);
}

KingMisfit wrote in part):

void driveForward();
  digitalWrite(9, HIGH);
  digitalWrite(0, LOW);
  analogWrite(0, 0);
  pinMode(9, OUTPUT);
  pinMode(0, OUTPUT);
void turnLeft();
  digitalWrite(9, HIGH);
  digitalWrite(0, LOW);
  analogWrite(2, 0);
  pinMode(1, OUTPUT);
  pinMode(8 OUTPUT);
void turnRight();
  digitalWrite(9, HIGH);
  digitalWrite(0, LOW);
  analogWrite(0, 0);
  pinMode(9, OUTPUT);
  pinMode(0, OUTPUT);

See how the loop() function and the setup() function are defined?
(except that you broke the loop function)

You probably intended this:

void driveForward()
{
  digitalWrite(9, HIGH);
  digitalWrite(0, LOW);
  analogWrite(0, 0);
  pinMode(9, OUTPUT);
  pinMode(0, OUTPUT);
}
void turnLeft()
{
  digitalWrite(9, HIGH);
  digitalWrite(0, LOW);
  analogWrite(2, 0);
  pinMode(1, OUTPUT);
  pinMode(8 OUTPUT);
}
void turnRight()
{
  digitalWrite(9, HIGH);
  digitalWrite(0, LOW);
  analogWrite(0, 0);
  pinMode(9, OUTPUT);
  pinMode(0, OUTPUT);
}

and this

void loop()  //  NO SEMICOLON !

What this is supposed to be I have no idea:

delay(100000000000000000000000000000000000093845790834750293845709345702938457209384572398457);

By the way, YOU are going to have to decide whether to spell the word Forward or Forword. They are not the same. I would choose Forward but that is only because that is the way that I spell the word in my language.