summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--9p27.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/9p27.cpp b/9p27.cpp
index 07913f8..648624a 100644
--- a/9p27.cpp
+++ b/9p27.cpp
@@ -17,8 +17,7 @@ int main () {
auto bbeg = flst.before_begin();
auto beg = flst.begin();
- auto end = flst.cend();
- while(beg != end) {
+ while(beg != flst.cend()) {
if(*beg % 2 == 1) {
beg = flst.erase_after(bbeg);
} else {