Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. auto f(auto first, auto second){
  5.  
  6.     return first + second(first<<1, (first<<1)|1);
  7. }
  8.  
  9. int main() {
  10.     int a = 1;
  11.     cout << f(a, [] (int _a, int _b) -> int {return _a + _b;}) << endl;
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement