summaryrefslogtreecommitdiff
path: root/other/sos.cpp
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2023-03-03 23:45:53 +0100
committermzuenni <michi.zuendorf@gmail.com>2023-03-03 23:45:53 +0100
commit61710d33fddc342904c69b955cc3b5a363473d1e (patch)
treed6d00bf5155eca44ebbecd57d0e243d1fe0c2afb /other/sos.cpp
parentf14f56b8f02fe548e83f3e36edb966d17fad0ab4 (diff)
fixed sos
Diffstat (limited to 'other/sos.cpp')
-rw-r--r--other/sos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/sos.cpp b/other/sos.cpp
index 0fe5dc0..01bc44c 100644
--- a/other/sos.cpp
+++ b/other/sos.cpp
@@ -2,5 +2,5 @@ vector<ll> res(in);
for (int i = 1; i < sz(res); i *= 2) {
for (int mask = 0; mask < sz(res); mask++){
if (mask & i) {
- F[mask] += F[mask ^ i];
+ res[mask] += res[mask ^ i];
}}}