Allen Guan says to YSITD
vector<int> output{}; for(int x: input) { output.emplace_back(x); !x && output.emplace_back(x); } return output;