Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <iterator>
- using namespace std;
- int main(int , char *[]) {
- vector<int> v1 = {0,1,2};
- vector<int> v2 <%v1<:0:>,not v1<:1:>?2:1,2%>;
- copy(v2.begin(),v2.end(),ostream_iterator<int>(cout,","));
- cout << endl;
- copy(v1.begin(),v1.end(),ostream_iterator<int>(cout,","));
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement