problem in SoftwareSerial (error messages)

Try putting #include <Arduino.h> at the very top of your sketch.

...R