I\'m trying to save threads into a vector with the index and ID as well but I\'m getting strange randomly numbers when I\'m trying to run the code
this is my code :