Serial.println() was not printing on serial monitor

exit status 1
'serialEventRun' was not declared in this scope

how to declare "serialEventRun" ?