#include<bits/stdc++.h>
using namespace std;
int main(){
    deque<int> d;
    int input;
    while(cin>>input){
        d.push_back(input);
    }
    for(int i=0;i<d.size();i++){
        cout<<d[i]<<" ";
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: