summaryrefslogtreecommitdiff
path: root/tests/cpp.cpp
blob: bc5ae7dcafc6f508189d2cdee8ca6909423a2f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <vector>
#include <iostream>
#include <algorithm>
#include <climits>

extern "C" int main() {
	std::vector<int> numbers = {};
	
	while (1) {
		int n = INT_MIN;
		std::cin >> n;
		if (n == INT_MIN) break;
		numbers.push_back(n);
	}
	
	//std::sort(numbers.begin(), numbers.end());
	
	for (int n: numbers)
		std::cout << n << std::endl;
	
	exit(0);
}