Problems with Submit


I actually solved this and tested in a different environment (VS Code on Linux). Here, “Test” runs fine, but when I hit “Submit”, I’m getting this:

*** Error in `./solution’: free(): invalid next size (fast): 0x0000000002125010 ***

There are no malloc/free in my code, just vectors. As suggested, I did “Run as custom input”, no problems again. But submit always fails.

Any suggestions?


I am facing a similar memory related runtime error. Did you ever realize why it occured?