1 2 3 4 5 6 7 8 | #include <iostream> #include <string> std::string const& f() { std::string a = "hello"; std::string const& b = a; return b; } int main() { std::cout << f().c_str() << std::endl; } |
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKc3RkOjpzdHJpbmcgY29uc3QmIGYoKSB7IHN0ZDo6c3RyaW5nIGEgPSAiaGVsbG8iOyBzdGQ6OnN0cmluZyBjb25zdCYgYiA9IGE7IHJldHVybiBiOyB9CgppbnQgbWFpbigpIHsKICBzdGQ6OmNvdXQgPDwgZigpLmNfc3RyKCkgPDwgc3RkOjplbmRsOwp9
-
upload with new input
-
result: Success time: 0s memory: 2960 kB returned value: 0
hello


