SegmentationFault


for single test case it’s working fine but when i am trying to run multiple test cases it’s showing core dumped error.Why?

Check if somewhere you are trying to access a memory index out of bounds.
Also please mention the question name so that i can check.

https://codeforces.com/contest/1366/problem/B

please let me know where i went wrong.I couldn’t find error

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.