Error in syntax when trying to compile triplex.cpp in the terminal

Hello

I’m right at the beginning of the course, starting to learn about C++ and when I try to compile the main() function it gives me these errors:

TripleX % g++ triplex.cpp -0 triplex
clang: error: unknown argument: ‘-0’
clang: error: no such file or directory: ‘triplex’

I’m not sure what to do.