Pregunta de entrevista de HP Inc.

Given C++ code examples and asked to find the errors/problems in the code.