#include <algorithm>
#include <iostream>
// Based on Richard Smith trick for constexpr lambda
// via Paul Fultz II (http://p...content-available-to-author-only...2.com/blog/2014/09/02/static-lambda/)
template<typename T>
auto addr(T &&t)
{
return &t;
}
static const constexpr auto odr_helper = true ? nullptr : addr([](){});
template <class T = decltype(odr_helper)>
inline void g() {
int arr[2] = {};
std::for_each(arr, arr+2, [] (int i) {std::cout << i << ' ';});
}
int main()
{
g();
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgovLyBCYXNlZCBvbiBSaWNoYXJkIFNtaXRoIHRyaWNrIGZvciBjb25zdGV4cHIgbGFtYmRhCi8vIHZpYSBQYXVsIEZ1bHR6IElJIChodHRwOi8vcC4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uMi5jb20vYmxvZy8yMDE0LzA5LzAyL3N0YXRpYy1sYW1iZGEvKQp0ZW1wbGF0ZTx0eXBlbmFtZSBUPiAKYXV0byBhZGRyKFQgJiZ0KSAKeyAKICAgIHJldHVybiAmdDsgCn0KCgpzdGF0aWMgY29uc3QgY29uc3RleHByIGF1dG8gb2RyX2hlbHBlciA9IHRydWUgPyBudWxscHRyIDogYWRkcihbXSgpe30pOwoKdGVtcGxhdGUgPGNsYXNzIFQgPSBkZWNsdHlwZShvZHJfaGVscGVyKT4KaW5saW5lIHZvaWQgZygpIHsKICAgIGludCBhcnJbMl0gPSB7fTsKICAgIHN0ZDo6Zm9yX2VhY2goYXJyLCBhcnIrMiwgW10gKGludCBpKSB7c3RkOjpjb3V0IDw8IGkgPDwgJyAnO30pOwp9CgppbnQgbWFpbigpCnsKCiAgICBnKCk7Cn0=