A question shows segemenation error

i tried a question here is the link:https://practice.geeksforgeeks.org/problems/winner-of-an-election-where-votes-are-represented-as-candidate-names-1587115621/1/#
I wanted to test out whether the strings are inserted or not so I ran this code but it shows segmentation error and does not go into the for loop kindly solve my query I would be grateful
https://ide.codingblocks.com/s/667725

hi @gurkirat2600 please remove all unnecessary lines

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.