Plz check i m not getting any output

Hey @asinghal1_be19 do this in your else bracket

            else{
                if(t.empty() == true){
                    cout<<“No”<<endl;
                    Break;
                }
                char temp = t.top();
                if(s[i] == ')' && temp == '('){
                    t.pop();
                }
                else if(s[i] == '}' && temp == '{'){
                    t.pop();
                }
                else if(s[i] == ']' && temp == '['){
                    t.pop();
                }
                else{
                    t.push(s[i]);
                }
            } 

It will get accepted

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.

sorry but i didnt understood plz make the following chnges in my code and send the updated code

https://ide.codingblocks.com/s/395392 plz help

Check now =>


Also your this doubt has been resolved. Open a new doubt if you have any more issues left with it.

Hello @asinghal1_be19 please elaborate what is your doubt in the code as another TA has already given you the solution.

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.