I get the following error, but only when I return 0:
*** glibc detected *** entropy: double free or corruption (!prev): 0x08775e10 ***
no error will pop up until my main function returns 0. From my research this is an error that you get when the program is having trouble deallocating memory. I am using some vectors in my main function, but I'm not sure if it can be due to that. I made sure to clear clear all my vectors before the end of the program but that didn't do the trick. I'm sofa king confused!!