Context: I'm working on creating a class for the Ant Colony Optimization (ACO) algorithm that includes all its variants. I've successfully implemented the most basic variant, but it consistently stops working if I create another std::vector after running the algorithm, especially when the number of nodes exceeds 40.
The program still works if I do nothing and just print out the result.
It only crashes if I create one more std::vector
Link to my code and the test case: https://github.com/tienthinh22/willDeleteLater