-o changes the output filename (I found that using --help)
But I can\'t find out what -Wall does?
-Wall
It enables most warning messages.
enables most warning messages
You can find out more if you use g++ --help=warnings.
g++ --help=warnings