#include <iostream>
typedef int(*summ_func)(int, int);
int int_summ(int rhs, int lhs)
{
return rhs+lhs;
}
int main()
{
summ_func func = &int_summ;
std::cout<<func(1, 1)<<std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp0eXBlZGVmIGludCgqc3VtbV9mdW5jKShpbnQsIGludCk7CgppbnQgaW50X3N1bW0oaW50IHJocywgaW50IGxocykKewoJcmV0dXJuIHJocytsaHM7CQp9CgppbnQgbWFpbigpCnsKICAgc3VtbV9mdW5jIGZ1bmMgPSAmaW50X3N1bW07CiAgIHN0ZDo6Y291dDw8ZnVuYygxLCAxKTw8c3RkOjplbmRsOwogICByZXR1cm4gMDsKfQ==