CB EDITOR is behaving in abnormal way

on my terminal my code is giving correct answer but on cb editor it is giving wrong answer.

Hi @narayansatish , please share your code here. I will check and report
for any technical assistance you can mail to [email protected]

In your isempty() function return false after if statement then try your code

i did not get you,can you explain further

in the code u sent u have

    bool isempty()
    {if(v.size()==0)
                return true;
     }

make it

bool isempty()
    {if(v.size()==0)
           return true;
      else
           return false; 
    }
}

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.