This is one of the reasons I recommend teaching kids C++ early.
Between build systems, ABI issues, compiler error messages, and undefined behavior it really builds perseverance and a great sense of accomplishment when your program compiles and runs correctly.
I am not aware of any other production language that gives that sense of accomplishment and requires that level of perseverance.