C++ Test 47

Mixed Test 47

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