#include <iostream>
using namespace std;
int f1(int *a) {
return *a + 1;
}
int *f2(int *a) {
return a + 1;
}
int *f3(int &a) {
return &a + 1;
}
int main() {
int t[] = {0, 1, 2, 3};
cout << f1(f3(*f2(t)));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCmludCBmMShpbnQgKmEpIHsKICAgIHJldHVybiAqYSArIDE7Cn0KICAgCmludCAqZjIoaW50ICphKSB7CiAgICByZXR1cm4gYSArIDE7Cn0KICAgIAppbnQgKmYzKGludCAmYSkgewogICAgcmV0dXJuICZhICsgMTsKfQogICAgCmludCBtYWluKCkgewogICAgaW50IHRbXSA9IHswLCAxLCAyLCAzfTsKICAgIGNvdXQgPDwgZjEoZjMoKmYyKHQpKSk7CiAgICByZXR1cm4gMDsKfQoK