It is impossible to answer this without knowing which compiler you are using. But in general, you cannot expect that a complete list of errors will be useful; one incorrect declaration can generate many other errors in the code, which are actually not erroneous. You can really trust only the first few errors.
Discard it, one error at a time, starting at the top of the list. And make sure that your changes, in turn, do not generate a whole bunch of new errors. Which is what happens by the sound of it.
source
share