You did not delcare z1 and z2 in main but you passed z1 and z2 to the zarat function from main. You only need to declare variables once when you pass them to other functions so either declare and initialize z1 and z2 in main or just call zarat() from main and declare z1 and z2 there.
I hope that makes sense. Good luck!
One problem I see is the start of the following function, your passing in z1 and z2 and your also declaring them locally. Delete the local ones. You also don't have z1 and z2 defined in main.