From 1462c1a161b3e986e066da92638fc3e9813498d4 Mon Sep 17 00:00:00 2001 From: Oskar Date: Tue, 15 Oct 2024 18:31:11 +0200 Subject: more --- 9p27.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.3