compile error

I have recieved this error on 2 occasions with adding code to an exsiting code.

Arduino: 1.8.4 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\bob\Documents\Arduino\Sketches\sketch_nov12d\sketch_nov12d.ino: In function 'void loop()':

sketch_nov12d:32: error: request for member 'write' in 'servo', which is of non-class type 'SoftwareServo [6]'

servo.write(i);

^

sketch_nov12d:34: error: expected '}' before 'else'

} else { //We are located at sstart and need to go to sstop

^

sketch_nov12d:36: error: request for member 'write' in 'servo', which is of non-class type 'SoftwareServo [6]'

servo.write(i);

^

sketch_nov12d:46: error: expected '}' at end of input

}

^

exit status 1
request for member 'write' in 'servo', which is of non-class type 'SoftwareServo [6]'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Do you think that if you posted the code that produced the errors it would be easier to provide help ?

class type 'SoftwareServo [6]'

 servo.write(i);

Do you have an array of servos?