#include <iostream>
int* foo() {
int i = 3;
return &i;
}
void bar() {
int k = 8;
}
int main(int argc, char ** args) {
int *i = foo();
bar();
std::cout << *i ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgppbnQqIGZvbygpIHsKICAgIGludCBpID0gMzsKICAgIHJldHVybiAmaTsgCn0Kdm9pZCBiYXIoKSB7CiAgICBpbnQgayA9IDg7Cn0KCmludCBtYWluKGludCBhcmdjLCBjaGFyICoqIGFyZ3MpIHsKICAgIGludCAqaSA9IGZvbygpOwogICAgYmFyKCk7CiAgICBzdGQ6OmNvdXQgPDwgKmkgOwp9