Try changing the 'int's of lines 4, 10 and 14 to 'void' and adding '#include "StdAfx.h"' to the beginning of your file.
Actually, leave the 'int' on line 4.
Now the 'return 0;' lines have an error saying "the line does not match any functions types", and my editor cannot open "StdAfx.h" .
Post the exact error that your compiler said.
1>------ Build started: Project: project12, Configuration: Debug Win32 ------
1> code12.cpp
1>c:\users\owner\documents\visual studio 2010\projects\project12\project12\code12.cpp(1): fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
So I didn't add the file in. It works perfect now, thanks.