I would like to store the same struct with different values inside the vector however I cannot do it since it's full so I have to use v.push_back() however I have no idea how to use it when dealing with structs.
You could look at vector::emplace_back (and provide a constructor for something), but also reorder your logic. First make one something, then add it to the vector.
you could use emplace_back to construct something objects directly within the container (here std::vector<something>) provided corresponding ctor overloads: