You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int n; cin >> n; vector v; vector ans;
for (int i = 0; i < n; i++) { int a; cin >> a; v.insert(v.begin(),a); } for(auto& n : v) { cout << n << " "; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
include
using namespace std;
int main() { int n; cin >> n; vector v; vector ans;
}