What problem do a toolchain and compiler flags solve, and which part of the minimal build command activates C++11 mode?
Show answer and explanation
A toolchain turns source code into a runnable program; -std=c++11 selects the C++11 language rules for the build.
The compiler and linker in the toolchain translate and then link source code into an executable. In the sample command, -std=c++11 selects C++11 language mode. -Wall, -Wextra, and -Wpedantic increase diagnostics but do not replace the language-standard flag.