Advertisement
Guest User

Untitled

a guest
May 24th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. vector<int> a{{2,4,6}};
  2. vector<int> b{{1,2,3,4,5}};
  3. vector<int> c{{-1,1-1,1,-1,1,-1,1}};
  4.  
  5. vector<int> res = map([](int x, int y, int z) {return a*b*c;}, a,b,c);
  6. //res -> {-2,8,-18}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement