I tried to compile your code, but i think that on line 46 you need the lowercase
z() instead of the uppercase Z().
I am a complete noob but vs gives also a error because of getch().
It says it needs to be _getch(). But i think that the int function z, regis, login
and f1 also needs to return a int value. but it never does.