I guess its not so lame at all…worked for me
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!
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
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!