You have a few issues.
Here:
return [&]() {
. , , , . , undefined , . , , , . (. , - - , [&] , , , & [&] . ... , ( [&] lambdas 1 (!)), ++, ...)
return [=]() {
.
:
return [x,y]() {
.
, , [&]. , , .
:
for (int i = 0; i < x(); i++)
x . !
auto max = x();
for (auto i = max; i > 0; --i)
max , , , , x unsigned int - .
:
int max = x();
for (int i = 0; i < max; ++i)
x , x -1.
-->:
int count = x();
while( count --> 0 )
.;)