#Program stops working if I create another std::vector<>

3 messages · Page 1 of 1 (latest)

lunar rover
#

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

oblique raftBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

lunar rover
#

!solved