Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to fix bad_alloc?

I call a function recursively inside itself. At the begin it works ok, but then I get bad_alloc or segmentation violation at the end of the program.

I have tried to clear all vectors and also build destructors in every class I use. I use vectors and arrays.

Comments