1 2 3 4 5 6 7 8 9 | #include <initializer_list> #include <iostream> #include <string> int main() { std::initializer_list<std::string> a({"hello", "stackoverflow"}); for(auto it = a.begin(), ite = a.end(); it != ite; ++it) std::cout << (*it).c_str() << std::endl; } |
I2luY2x1ZGUgPGluaXRpYWxpemVyX2xpc3Q+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KCmludCBtYWluKCkgewogIHN0ZDo6aW5pdGlhbGl6ZXJfbGlzdDxzdGQ6OnN0cmluZz4gYSh7ImhlbGxvIiwgInN0YWNrb3ZlcmZsb3cifSk7CiAgZm9yKGF1dG8gaXQgPSBhLmJlZ2luKCksIGl0ZSA9IGEuZW5kKCk7IGl0ICE9IGl0ZTsgKytpdCkKICAgIHN0ZDo6Y291dCA8PCAoKml0KS5jX3N0cigpIDw8IHN0ZDo6ZW5kbDsKfQ==
-
upload with new input
-
result: Success time: 0s memory: 2960 kB returned value: 0
hello stackoverflow


