Advertisement
tinyevil

Untitled

Jan 20th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. vector<int> v = {1,0,0,0,2,0,3,0};
  2.  
  3. for ( auto x : map(x -> x + 1, filter(y -> y != 0, reversed(v))) ){
  4. cout << x;
  5. }
  6.  
  7. //4 3 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement