On line 30 you have a return statement without a value. The return type of binary is int so it has to return an integer. That's why it complains when you try to return from the function without returning a value.
Yea that's what I was thinking, the problem is whenever I try adding "return;" at the end of the functions, it doesnt return a value. And if i try adding "ans=....." into them, and use "return ans;" the answers come out wrong and binary goes through an infinite loop until it crashes.
I've gotten the program to work and give me the conversion to the different bases, but it needs to ask the user which one they want. Thats where i start running into problems because my original functions didnt want to work with the if statements