Arduino motor shield sketch problems

Have you definitely got an Adafruit motor shield?