Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- std::vector<int> maps(const std::vector<int> & values) {
- std::vector<int> a = values;
- for(std::vector<int>::iterator it = a.begin(); it != a.end(); it++){
- *it=2**it;
- }
- return a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement