Did you try deleted the contents of the debug folder?
tried copy and pasting the code and creating a new project?
are you the admin on your pc and have full control?
do other c++ programs work?
have you tried bloodshed dev c++ to make sure it is a visual studio problem.