"variable or field declared void" While trying to declare functions

You need to specify the types of the arguments in both the function definition and the function prototype.