Code Not Working showing errors but it working fine in the Dev C++


Please check this code.

@aryangrover hey,your logic is incorrect as you have just first copy first array in new array and then copy second.But you have to merge these two array and then find the median of that merged array ,also you have taken the case of even size array ,not odd size.Also donot write input lines in ide like enter elements of first array etc etc as they will effect output as you only give numerical input and output median in form of number is obtained.Hope you get it .If still have any doubt than please ask it.
Happy coding :slight_smile:


Sir, Is It Okay now?
It is working in Dev Compiler but not here. What’s the issue now?

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.