#include<bits/stdc++.h>
using namespace std;
int main(){
int a[5];
memset(a,1,sizeof a);
for(int i=0;i<5;i++)cout<<a[i]<<'\n';
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int a=10;
int b=20;
swap(a,b);
cout<<a<<' '<<b;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec={1,2,3,4,5};
reverse(vec.begin(),vec.end());
for(int num:vec){
cout<<num<<" ";
}
cout<<endl;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec={1,1,2,2,3,3,3,4,4,5};
auto it=unique(vec.begin(),vec.end());
vec.erase(it,vec.end());
for(int num:vec){
cout<<num<<" ";
}
cout<<endl;
return 0;
}