From 1880ccb6d85c6eb79e724593457877bab431951c Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Sat, 16 Nov 2024 21:17:29 +0100 Subject: get rid of all() and sz() --- content/other/sos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/other/sos.cpp') diff --git a/content/other/sos.cpp b/content/other/sos.cpp index 01bc44c..892a47c 100644 --- a/content/other/sos.cpp +++ b/content/other/sos.cpp @@ -1,6 +1,6 @@ vector res(in); -for (int i = 1; i < sz(res); i *= 2) { - for (int mask = 0; mask < sz(res); mask++){ +for (int i = 1; i < ssize(res); i *= 2) { + for (int mask = 0; mask < ssize(res); mask++){ if (mask & i) { res[mask] += res[mask ^ i]; }}} -- cgit v1.2.3