Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<int> v = {1,0,0,0,2,0,3,0};
- for ( auto x : map(x -> x + 1, filter(y -> y != 0, reversed(v))) ){
- cout << x;
- }
- //4 3 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement