You can't compile without a compiler. By definition, everything that compiles is a compiler. You can, however, write your program in notepad and compile it from the command line without using an IDE. I have a feeling you were confusing the two.
First you get yourself a compiler. If you don't have one, try http://sourceforge.net/projects/mingw/ (assuming windows). Then run the compiler with your source as its argument.