Write a program below |
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n, a;
vector<int> myvector;
cin >> n>>a;
for (int i = 0; i < n; i++)
{
int b;
cin >> b;
myvector.push_back(b);
}
|
|
for (auto now : myvector) {
cout << now << " ";
}
}
|