why do I get run time error (SIGEMT) ?

I guess its not so lame at all…worked for me

1 Like

I defined N, then took its array and then assigned N’s value.
I instead should have assigned N’s value before making the array!

it worked man, Noice!

1 Like

we just have to give an initial value to the all int while declaring .
eg: int x ; //this can give error
eg: int x=0; //this wont

1 Like

Try running code on local compiler and then import the code. Worked for me !

For my case, I spent 1.5 hours debugging this. I realised that I didn’t input one of the testcase and the compiler was waiting for me to submit the input!