On lines 49 and 53 you have inconsistencies with your variable names. You went from firstMatrix (capital M) to firstmatrix (lowercase m) and then did the same with secondMatrix.
On line 79, what is getch() and what is it supposed to do?
In your two functions you have variables that haven't been named inside of them. For instance, on line 121, you use the variables firstMatrix and secondMatrix. But those haven't been declared within, or passed to, your add() function.
Finally, I think you'll have to declare sumMatrix outside of the for loop in order to use it.
Try to get all that sorted out and see if you still have problems. Focus on one function at a time, and try to get it so that all of the variables that you need to use will be available. Taking everything one step at a time should help out a little.
EDIT:
getch() isn't giving an error after I fixed one problem.