From 2ecc7eef289a1e563facb8ae41b1d56f00904b2d Mon Sep 17 00:00:00 2001
From: Alexander Beischl <alexander.beischl@tum.de>
Date: Mon, 16 Nov 2020 17:35:03 +0100
Subject: [PATCH] Fix not necessary for loop.

---
 src/sum.cpp | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/sum.cpp b/src/sum.cpp
index 7cbb915..3838467 100644
--- a/src/sum.cpp
+++ b/src/sum.cpp
@@ -19,13 +19,10 @@ int64_t sum_extendedprice(const std::string& file_name) {
     int64_t price_sum = 0;
     uint64_t field_number = 0;
     for (auto row : lineitem) {
-        for (const auto& field : row) {
-            //-- TODO exercise 2.5
-            // your code goes here
-            //--
-        }
+        //-- TODO exercise sheet 2 Task 4.2
+        // your code goes here
+        //--
     }
-
     return price_sum;
 }
 
-- 
GitLab