43:12: warning: multi-character character constant [-Wmultichar]
49:12: warning: multi-character character constant [-Wmultichar]
In function 'int convertToRegular(int&, int&)':
43:10: warning: overflow in implicit constant conversion [-Woverflow]
49:10: warning: overflow in implicit constant conversion [-Woverflow]
In function 'void outputFunction(int&, int&)':
56:37: error: 'S' was not declared in this scope
Warnings:
Line 40: S is a char.
Line 43/49: PM is not one character. Neither is AM.
Lines 51 and 38: function must return int, but you return S, which is char.
Error:
Name 'S' is unknown in function outputFunction.
Your main() does not call any of your other functions. Thus, your program would not produce any output, even if we fix outputFunction.