the error reads in this manner.
Nonsense. The COMPLETE error message tells you (or us) which file is being compiled and which line is causing the problem.
If you enable verbose mode, it will even tell you (or us) which Arduino you are compiling for, and what version of the IDE, since you omitted some of those details, along with the code tags you were supposed to use.