Please help with Error compiling for board Mega 2560

the problem has been resolved

Read the How to get the best from the forum post. It tells how to properly post error messages and code using code tags.

You will probably have to post your code.