my code is working fine for sample test case but on submit it is showing run time error and wrong answer my code:- https://repl.it/@mohdimran001/merge-sort#main.cpp
Wrong Answer on submit
at line 65 use : ll arr[200000];
ll arr[n] is wrong as on compilation time value of n is no known compiler give a random size to arr
after using this all testcase will pass
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course