unordered_map<string,int>m;
for(int i=0;i<2;i++){ //i<enum entries
m[customer] = i;
}
You can do like this
unordered_map<string,int>m;
for(int i=0;i<2;i++){ //i<enum entries
m[customer] = i;
}
You can do like this
Now for every input output is coming this only
https://drive.google.com/file/d/1ijRKCOghglfhLAj3X2XmWVJ2rxNK03G_/view?usp=drivesdk
Hey @nmaurya760
m1["regular"] = 0; //0 indexing
m1["rewardee"] = 1;
m2["weekdays"] = 0;//0 indexing
m2["weekend"] = 1;
x.n = nod;
y.n = nod;
z.n = nod; //z.n instead of y.n
The code is working fine now…
I have written this code can u pls tell under which design pattern could v classify it? Is it singleton??
Please open seperate doubts for different questions 
I have opened that doubt but someother ta has replied that he dont have good knowledge in design patterns
Then revoke and reopen 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.