fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int i = 20;
  7.  
  8. [&](int j){std::cout << i << " - " << j; }(30);
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
20 - 30