MY CODE IS ABSOLUTELY CORRECT ,GIVING ABSOLUTELY CORRECTB OUTPUT BUT STILL FAILING TEST CASES

MY CODE URL:- https://ide.codingblocks.com/s/647575
PLZ CORRECT THE MISTAKE

hi @chhabrarishi2001_264ecb7697e8af2a
i just removed the functions and included in main function… it worked fine… maybe returning long dynamic arrays gave error, but i am not very sure about that… there may be some compiler issues also…
this code is working fine and passing all test cases…

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.