Cannot compile optional challenges

I’m trying to learn C++ but whenever I try to do the optional challenge at the end of a lesson and try to compile my code by writing “cpp review.cpp” I am hit with a stream of error message gibberish–even if I haven’t even written anything.
Please help!
(link: https://www.codecademy.com/courses/learn-c-plus-plus/lessons/cpp-conditionals-and-logic/exercises/review)

The file name is space.cpp. The compiler on the system is g++ (the gnu compiler).

So the command should be g++ space.cpp unless you changed the file name

1 Like