Not declared in scope

The error occurs due to a wrong setup of the lcd constructor, which is apparently for another Arduino (Mega?).
In addition we should exactly get to know what lcd library is being used, and what lcd display is to be connected, to get an idea about the right constructor and the wiring.