For this Question: Write a Program to duplicate an array N number of times.The first line of the input contains two space separated integers N and M - The size of an array and Number of times to be repeated.
The second line contains N space separated integers A<sub>1</sub>, A<sub>2</sub>,. , A<sub>n</sub>.

<b>Constraints</b>
1 &le; N,M &le; 100
1 &le; A[i] &le; 1000Print the required output.Sample Input 
3 2
1 2 3

Sample Output
1 2 3 1 2 3, I have written this Solution Code: #include <bits/stdc++.h>

using namespace std;

#ifdef LOCAL
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...) 2351
#endif

int32_t main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    auto start = std::chrono::high_resolution_clock::now();

    int n, k;
    cin >> n >> k;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    while (k--) {
        for (auto &i : a) {
            cout << i << " ";
        }
    }

    auto stop = std::chrono::high_resolution_clock::now();
    auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start);
    cerr << "Time taken : " << ((long double)duration.count()) / ((long double)1e9) << "s " << endl;
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?