C++ Test 49

Mixed Test 49

Every question is code-based, but the task types are mixed: output, compile result, safe fix, behavior analysis, and bug spotting.