I want to define a vector with 20 rows and 4 columns which its elements is vector with variable size like this
result={
{1,2,3},{5,4},{1},{10,15,16}
{5},{1,2},{1,2,3},{1,4,5,6}
...
}
Result at first is empty ... some part of my code is written below and 'result' update if condition is true
for(int i=0;i<20;i++){
hash_1=hash_images[i];
for(int j=i+1;j<20;j++){
hash_2=hash_images[j];
dis=hammingDist(hash_1.c_str(),hash_2.c_str());
for(int t=0;t<4;t++){
if (dis<=t){
? result[i][t].push_back(somthing);
}
}
}
}