blob: 29733944f9c4af46a61b9ec73c8f56a8fdca548a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include <iostream>
#include <vector>
/*
*
* 3.14
*
* Not exactly according to instructions but still learned from making this.
*/
using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
using std::vector;
int main () {
int n;
vector<int> vn;
if(cin >> n) {
vn.push_back(n);
while(cin >> n){
vn.push_back(n);
}
} else {
return -1;
}
for(auto vni : vn) {
cout << vni << endl;
}
return 0;
}
|