#include <iostream>
using namespace std;
void add(int x, int y, int* result)
{
*result = x + y;
}
int main()
{
int* result = new int;
add(2,3, result);
cout << *result << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBhZGQoaW50IHgsIGludCB5LCBpbnQqIHJlc3VsdCkKewogICAqcmVzdWx0ID0geCArIHk7Cn0KCmludCBtYWluKCkKewogICBpbnQqIHJlc3VsdCA9IG5ldyBpbnQ7CgogICBhZGQoMiwzLCByZXN1bHQpOwogICBjb3V0IDw8ICpyZXN1bHQgPDwgZW5kbDsKICAgIHJldHVybiAwOwp9