Skip to content

Instantly share code, notes, and snippets.

@DarTheStrange
Last active December 17, 2015 17:29
Show Gist options
  • Save DarTheStrange/5646140 to your computer and use it in GitHub Desktop.
Save DarTheStrange/5646140 to your computer and use it in GitHub Desktop.
Brief thing that's probably all wrong. Guide me, wise one!
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <int> vec;
for (int i = 10; i; --i) {
int x;
cin >> x;
vec.push_back(x);
}
for (int i = 0; 10 - i; ++i) {
cout << vec[i] << '\n';
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment