Https://ide.codingblocks.com/s/215043

it gives error when condn is
min.size()-max.size()>1
but works perfectly fine for
min.size()>max.size()+1

is it error related to data type?
since return type of size() is unsigned int. in first case left side is of type unsigned int while right side is simply 1 means of int type.
this mismatch is not there in case of second case, since 1 will be treated as unsigned int when added with a unsigned int value.

ideally this should be just warning not error.
thanks

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.