#include <iostream>
using namespace std;

int add(int x, int y)
{
    int a = x + y;
    return a;
}

double add(double x, double y)
{
    double a = x + y;
    return a;
}

int main()
{
    int i1 = 10, i2 = 20;
    double d1 = 0.1, d2 = 0.2;
    cout << "i1+i2=" << add(i1, i2) << endl;
    cout << "d1+d2=" << add(d1, d2) << endl;
}
