Getting an error while submitting the code

i replicated the same code as in video, but i am getting error, on submitting the code, on code-blocks or even on leetcode, but its running exactly fine in my own compiler. So please check my code or the problem in the code.
On submitting it to code blocks my test case 4 is failing,
where as on leet code i am getting run time error.
code link :- https://drive.google.com/file/d/1sj_ESVblMUO5tz-TJZeMR3HTx17tt4_w/view?usp=sharing

Hey @saksham_thukral
Note : if in case the median of the two sorted arrays is double type You have to print only integer part

where, in code blocks ide or leet code?And i guess you are saying that i need to print int value at end, not float or double,right? I tried it but in code block, still my test case 4 is failing, and in leet code i am still getting run time error

hey In codeblocks
Here

float med = (Zmid+(float)Zmid1)/2;

Instead of the above use

           float med = (Zmid+Zmid1)/2;

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.