fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int x = 100500;
  5.  
  6. int main() {
  7. auto f = [&]() { cout << x << endl; };
  8. f();
  9. return 0;
  10. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
100500