#include #include #include using namespace std ; int main() { vector v1 = { 10,20 } ; auto f1 = [=]() { cout << "Lambda Step Begin" << endl ; cout << v1.at( 2 ) << endl ; cout << "Lambda Step End" << endl ; }; try { f1(); cout << "After f1(): " << endl; } catch (const out_of_range& e) { cerr << "Error: Out of range " << endl; } return 0 ; }