Welcome to LQ!
Please wrap your code and data snippets inside [CODE]...[/CODE] tags. Doing so will preserve indentation and provide other visual clues which make it easier for others to comprehend. You may write those yourself as shown, or use the
# button available with Advanced edit options. (A complete list of
BBCode tags is always available via a link near the bottom of every thread view).
Presumably, the error message in the title indicates some problem, but you have not told us what the environment or language is, nor actually asked a question or indicated what you may have done to resolve it. Posting whole code and asking others to debug it for you is not usually a good path to getting help.
Please review the
Site FAQ for guidance in asking well formed questions. Especially visit the link from that page,
How to Ask Questions the Smart Way for discussion of things to consider when asking others for help.