Please use this thread for any simple questions you have. If you can't figure something out, if you want to make a request, or anything else that comes to mind.
This thread will stay alive until the next one is posted.
I believe you should set a size to a[m-n+1]
Can you please help me figure out where the problem in the logic is occuring of this question(see link for the question). See my code also.