Maximum Circles Problem

not getting solution and also the commented cout statements are also not working