fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n = 5;
  7. int s = [] (int n) { int i = 1; while(n--) i*=2; return i; }(n);
  8. cout << s;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
32