do i have to define pair in this function, if no then how to access the first and second of this pair as no pair STL is used?
Define pair<int, bool>?
u can simply use in built stl for pair.
pair<int,bool> p;
like this
still have any doubt??
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.