Source File not compiled

I am really new to C++ so I can learn to make programs, games, etc. I tried to practice with a code in Dev-C++ and tried to run it. It gives me "Source File not compiled". I don't know if I'm doing this wrong in general since I tried to edit it in Notepad++ and it gives me an error as well, saying "The program or feature "filename" cannot start or run due to incompatibity with 64-bit windows". I don't understand it though, am I supposed to use a different code instead of <iostream>?.This is my short code:

1
2
3
4
5
6
#include <iostream>
int main()
{
   std::cout << "Hello World" << std::endl;
   return 0;
}

I'm currently using Dev-C++ 4.9.9.2 and on Windows 8 64 bit. This is literally my first code I made. Anyways, may I have some help? Thank you.
Last edited on
on your fourth line after the "Hello World" << you need to have std::endl;
I done that. It's still gives me the same error.
I'm currently using Dev-C++ 4.9.9.
Don't.
That version is obsolete (last updated 2005).

Switch to a newer IDE and compiler, such as Orwell Dev-C++ Version 5.6.3 or code::blocks.

http://orwelldevcpp.blogspot.com/
http://www.codeblocks.org/

DevC++ has several problems running on Windows 7 and newer.
Topic archived. No new replies allowed.