Uh, yes. A compiler will really come in handy when trying to execute c++ code.
Many free compilers exist. Do a google search. You'll likely find GCC the GNU compiler. That one works, as do a dozen others. You need to find one that works for you.
Good luck!
