https://www.google.com/search?q=malloc+vs+new+c%2B%2B&rlz=1C2JJTC_en-GBGB1021__1021&sxsrf=APwXEdfyOWzz7U8fuQh3yp54YQdmBu58TQ%3A1686989187543&source=hp&ei=g2mNZIW9HdiM9u8Phb-h0...
Does it even compile? Because sequare has a parameter.
You mean, if you return 0 or 1, what things happen and how different results they produce?
Did you try to use the simple way I showed you through the previous code?