Error's after i validate the project

i have a code which i run the without validating the project, It runs fine,

But when i validate the project , it doesn’t run coz of errors


Screen Shot 2013-09-06 at 11.18.22 AM.png (42.8 KB)

Errors come as per the screenShots

Found the solution …… if any one facing the same prob just change the compiler in build settiings to LLVM GCC 4.2