You are returning a reference to a local object. That's undefined behavior. Return by copy instead, the copy will be elided thanks to RVO (return value optimization).
std::vector<int> getVInt(){
std::vector<int> vint;
// …
return vint;
}