"Did you build test.cpp within Eclipse? On the screen shot I miss some generated folders:
Press CTRL+B (or however this key is called on a Mac). After a successfully build you should see a folder "Debug" or "Release" in the Project Explorer view and a virtual Folder Binaries. Now right click on one of the binaries and select Run as > Local C/C++ Application.