Write a function named compute that calculates the sum and product of two 16-bit signed integers and returns both results using reference parameters.
Function Requirements:
a and bint16_tsum and productint32_tsum = a + bproduct = a * bIn main():
a and b from standard inputcompute(a, b, sum, product)sum and product separated by a single space
Example
Input:
30000 2Output:
30002 60000Constraints:
a and b are 16-bit signed integers-32768 to 32767sum and product are 32-bit signed integers<cstdint>) to ensure portability
Input
3 4
Expected Output
7 12