3
vector<int> relativeSortArray(vector<int> &arr1, vector<int> &arr2) {13
for (int l = 0; l < x; l++) {14
res.push_back(z.first);20
if (z.second == 4 && find(res.begin(), res.end(), z.first) == res.end()) {22
for (int aqq = 0; aqq < p; aqq++) {23
res.push_back(z.first);27
if (z.second == 3 && find(res.begin(), res.end(), z.first) == res.end()) {29
for (int aq = 0; aq < p; aq++) {30
res.push_back(z.first);34
if (z.second == 2 && find(res.begin(), res.end(), z.first) == res.end()) {36
for (int a = 0; a < p; a++) {37
res.push_back(z.first);41
if (z.second == 1 && find(res.begin(), res.end(), z.first) == res.end()) {42
res.push_back(z.first);