#include <string>
#include <vector>
#include <iostream>
#include <cstring>
using namespace std;
int main() {
vector<size_t> v;
v.push_back(1);
v.push_back(2);
v.push_back(3);
string s((char*)(&v[0]), 3 * sizeof(size_t));
vector<size_t> w(3);
strncpy((char*)(&w[0]), s.c_str(), 3 * sizeof(size_t));
for (size_t i = 0; i < w.size(); ++i) {
cout << w[i] << endl;
}
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewp2ZWN0b3I8c2l6ZV90PiB2Owp2LnB1c2hfYmFjaygxKTsKdi5wdXNoX2JhY2soMik7CnYucHVzaF9iYWNrKDMpOwoKc3RyaW5nIHMoKGNoYXIqKSgmdlswXSksIDMgKiBzaXplb2Yoc2l6ZV90KSk7Cgp2ZWN0b3I8c2l6ZV90PiB3KDMpOwpzdHJuY3B5KChjaGFyKikoJndbMF0pLCBzLmNfc3RyKCksIDMgKiBzaXplb2Yoc2l6ZV90KSk7Cgpmb3IgKHNpemVfdCBpID0gMDsgaSA8IHcuc2l6ZSgpOyArK2kpIHsKICAgIGNvdXQgPDwgd1tpXSA8PCBlbmRsOwp9Cn0=