since f is defined as void, it doesn't do anything originally and won't return anything.
However, when the lambda function is set to return int, undefined behavior will occur.