fork download
  1. #include<iostream>
  2. int main()
  3. {
  4. int a = 100;
  5. std::cout<<[=,&a](int a,int b){return a+b;}(99,1);
  6. return 0;
  7. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
101