pretty much when i try to call the function it says that gross and prov is invalid please need help with this so much been trying to figure it out for hours now
In main you don't have variables called gross and prov. Unfortunately, the compiler can't read your mind to find out what you intended those arguments to be, so it flags it as an error.
It also looks like you're using an uninitialized variable salary which will result in undefined behavior when you finally get your code compiling as well as asking the user to type a letter that you're trying to stuff into an int variable which will cause the stream to enter an error state.
This kind of errors are very common and it's important to keep practicing in order to solve them. If you'll practice more, you'll get better, which will make them less common and easier to be detected. There are programs that helps with it sometimes, like checkmarx and many others, but I always recommend on practicing and understanding the language as much as possible in order to achieve greatness.
Good luck.