Honestly I don't see anything wrong with your code at all. Your version or the one that Rob provided should work without problems. The error your getting is coming from the linker not being able to resolve the _WinCRTStartup symbol, which I have no clue what that's all about.
I'm not familiar with the compiler you're using so I can only give you general things to look for/try. I'm assuming you're trying to compile your program from within the IDE, right? Perhaps you've got another file associated with that project that you don't realize is there? Make sure your .cpp file is the only one being compiled and that there aren't any other files associated with your project (well except for iostream as you'll need that for cout). If anything... try compiling from the command line. Otherwise... I'm not sure what else to tell you at this moment.