Debug a staged C++ project with AI tools allowed
A C++ program is split into stages, each hiding a logic error, a memory bug or a race. Run it, observe the output, and fix each stage, using an AI assistant if you like while explaining your reasoning.
No answer yet. Write the first one; the best answer gets endorsed.
