Parenthesis(hackers block launchpad)

I AM NOT ABLE TO CHECK BOTH THE STRINGS AT THE SAME TIME, CAN YOU TELL ME HOW TO DO IT

https://ide.codingblocks.com/s/107350 - THIS IS THE URL OF THE CODE

hey @Ayushi21, can you share link to the problem statement.

https://hack.codingblocks.com/contests/c/917/1388 - thisis the url of the question

hey @Ayushi21, I am not able to acces the above question, please share the screenshots of question.

https://ide.codingblocks.com/s/107883 - this is the question

hey @Ayushi21, you should check it for one string only.
2
(((a+(b))+(c+d)))
((a+(b))+(c+d))
for the above input 2 is the testcase. You need to print whether (((a+(b))+(c+d))) has duplicate parenthesis or not in 1st line and same for ((a+(b))+(c+d)) in second line.

https://ide.codingblocks.com/s/110104 - this is the url of the code . can you tell me how to do it.

hey @Ayushi21, you need to check specially for ) and then pop all characters from the stack till ‘(‘ is occured. You also need to maintain a counter is used, which will be incremented ‘(‘ occurs.is found. If the value of the counter, is less than 1, then a pair of duplicate parenthesis.

refer to this code https://ide.codingblocks.com/s/110221

okh thank you so much.

hey @Ayushi21 , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved