Problems with Submit


#1

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 ***
Aborted

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?


#2

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