Hello, im currently learning c++ and one of the exercises I was given is to find the bug in the following code. I could not figure out what the bug was, other than maybe because the pointer was not deleted and might cause memory leaks, but it should not matter because the program was returning anyways.