Why my code is giving wrong answers

hello , sir please reply

Hey @dhruvilcodes
checking …

Hey @dhruvilcodes
Take input first and then run your algo
Otherwise when u break for current input then remaining input is taken into next line
ay . # …
So here when u break at # then next line will take input from . . . in your code

1 Like

https://ide.codingblocks.com/s/362436 still giving core dumped error please help me

Mentioned the changes in comments : https://ide.codingblocks.com/s/362544

1 Like

Hey @dhruvilcodes
If this resolved your query then please mark it as resolved :slight_smile:

1 Like