Removed the "debugging purposes" part on line 64 due to having no purpose excepting making program not run, cause "res" is not defined in any shape or form.
Removed "getint(int *) from line 62, due to it already being a function, this resulted in host of problems when trying to initialize it inside main.
As a result of these changes, the program is functional