summaryrefslogtreecommitdiff
path: root/3p14.cpp
blob: ba9b2c99f0a67d5ef0007959109ade57d8a5f531 (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
38
39
#include <iostream>
#include <vector>
#include "sales_data.hpp"
#include "sales_item.hpp"

/*
 *
 * 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;
}