Wish I could help you, but I use XCode.

When you figure out how to compile scripts (don't get discouraged), here's a program I made a LONG time ago for practice.
You'll need to convert the file type to a .cpp file or copy-paste it in a already made .cpp file to run it.