Problem in global variable


why is this code not working??
it is a global variable count earlier these codes used to run…
plz correct the code along with explaination,
also tell how to pass 2d array to function along with its size taken as input from user in case of multiple testcases

why is no one replying??