#include <thread>
#include <vector>
#include <iostream>
using namespace std;
void fun(vector<int> & v) {
v.push_back(13);
}
int main(){
vector<int> v;
thread t(fun, ref(v));
t.join();
cout << v.size();
}
I2luY2x1ZGUgPHRocmVhZD4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBmdW4odmVjdG9yPGludD4gJiB2KSB7Cgl2LnB1c2hfYmFjaygxMyk7Cn0KCmludCBtYWluKCl7Cgl2ZWN0b3I8aW50PiB2OwkKCXRocmVhZCB0KGZ1biwgcmVmKHYpKTsKCXQuam9pbigpOwoJY291dCA8PCB2LnNpemUoKTsKfQ==