arduino mega 2560 using sketch: error message serial port does not exist

Possibly change your for loops to start at 2, not 0.