C++ Test 50

Mixed Test 50

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