Okay, since these jokers don't have much else to say
Better appreciate this, i got onto my computer just so I could help you do this as my phone is a bitch to read code on.
Second off, why do you call int mult(a, y) then int sum(a, y)?
what is the getch() for? i really see no need for it.
and the if statement.... you have it saying if b == 1 do something, but how can b == 1 if you don't do anything to b before that? also, this program is really too short to worry about having a seperate function, its making things too complicated and it seems as though you would be better off learning a bit more about c++ before trying to make something simple like math into a more complicated program. I'm not trying to be rude here, but remember, K.I.S.S (keep it simple, stupid)
*edit*
didn't think about this code being part of a larger program, so there might be reason to use functions here, but for all readers out there. try to stick to KISS. not only will it make your life easier, it'll make your program faster (in most cases, not just functions and shizz)
*/edit*
I'll let you see what you can do now to fix it, please update this with your working one so we can see what you finally did. good luck mate