#include <iostream>
template <typename T>
int plus(T &a,T &b);
int main()
{
int i=2;
int j=4;
std::cout<< "сумма "<<i<<" и "<<j<<"равна "<<plus(i,j);
return 0;
}
template <typename T>
int plus(T &a,T &b)
{
T temp;
temp=a+b;
return temp;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4KaW50IHBsdXMoVCAmYSxUICZiKTsKaW50IG1haW4oKQp7CglpbnQgaT0yOwoJaW50IGo9NDsKCXN0ZDo6Y291dDw8ICLRgdGD0LzQvNCwICI8PGk8PCIg0LggIjw8ajw8ItGA0LDQstC90LAgIjw8cGx1cyhpLGopOwoJcmV0dXJuIDA7Cn0KdGVtcGxhdGUgPHR5cGVuYW1lIFQ+CmludCBwbHVzKFQgJmEsVCAmYikKewoJVCB0ZW1wOwoJdGVtcD1hK2I7CglyZXR1cm4gdGVtcDsKfQo=