Initialise your variables, then ask again if you’re still getting WA
I tried initializing all variables in the following code:
It is still showing WA in two subcases.
I feel that I have initialized all variables in the previous code also, some at the beginning, while some in between.
Maybe I could not understand what you meant, if so, please do tell…
Thanks! Consider the test input:
2 1 2
I got it with your help now, Thanks to you!!