about summary refs log tree commit diff
path: root/day02.cc
diff options
context:
space:
mode:
Diffstat (limited to 'day02.cc')
-rw-r--r--day02.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/day02.cc b/day02.cc
index ba955ee..d19b454 100644
--- a/day02.cc
+++ b/day02.cc
@@ -13,9 +13,9 @@ int main()
 	int s1 = 0, s2 = 0;
 
 	while (getline(cin, line)) {
+		// slurp it for part 2
 		istringstream is{line};
-		vector<int> v{istream_iterator<int>(is),
-		    istream_iterator<int>()};   // slurp it for part 2
+		vector<int> v{istream_iterator<int>(is), {}};
 
 		auto [min, max] = minmax_element(begin(v), end(v));
 		s1 += *max - *min;