You did not post the entire code, but
#include <SoftwareSerial.h>
SoftwareSerial myPort(10,11); // RX, TX
Should go before void setup.
You did not post the entire code, but
#include <SoftwareSerial.h>
SoftwareSerial myPort(10,11); // RX, TX
Should go before void setup.