From a9f19bdf41cc42e0ea8dfa863dccbdce226c12ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Mon, 25 Mar 2024 23:31:43 +0300 Subject: [PATCH] d --- language-C++/Memory/src/Memory.Aux.cpp | 6 ++++-- language-Swift/Memory/src/Memory.Test.swift | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/language-C++/Memory/src/Memory.Aux.cpp b/language-C++/Memory/src/Memory.Aux.cpp index ae4044e..be596b3 100644 --- a/language-C++/Memory/src/Memory.Aux.cpp +++ b/language-C++/Memory/src/Memory.Aux.cpp @@ -7,8 +7,10 @@ std::map memory_generateConstPlayfield( std::map idGroups; int id = 0; for (int gid = 0; gid < n; ++gid) { - idGroups[id++] = gid; - idGroups[id++] = gid; + idGroups[id] = gid; + id += 1; + idGroups[id] = gid; + id += 1; } return idGroups; } diff --git a/language-Swift/Memory/src/Memory.Test.swift b/language-Swift/Memory/src/Memory.Test.swift index 01b7cd6..53e5d4d 100644 --- a/language-Swift/Memory/src/Memory.Test.swift +++ b/language-Swift/Memory/src/Memory.Test.swift @@ -9,6 +9,6 @@ func test_memory_generateConstPlayfield() -> String { ) { return "OK: memory_generateConstPlayfield" } - - return "ERR: memory_generateConstPlayfield"; + + return "ERR: memory_generateConstPlayfield" }