From 2891de43a058357bb8931013bbc770846d0255b1 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: Tue, 26 Mar 2024 10:22:28 +0300 Subject: [PATCH] d --- gen-C++ | 1 + language-C++/Memory/src/Memory.Aux.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gen-C++ b/gen-C++ index 415cab1..924cd47 100755 --- a/gen-C++ +++ b/gen-C++ @@ -1,4 +1,5 @@ c++ -o test_memory_C++ \ + -std=c++11 \ -Ilanguage-C++/Memory/src \ language-C++/Memory/src/Memory.Aux.cpp \ language-C++/Memory/src/Memory.Test.cpp \ diff --git a/language-C++/Memory/src/Memory.Aux.cpp b/language-C++/Memory/src/Memory.Aux.cpp index be596b3..af6888e 100644 --- a/language-C++/Memory/src/Memory.Aux.cpp +++ b/language-C++/Memory/src/Memory.Aux.cpp @@ -5,7 +5,7 @@ std::map memory_generateConstPlayfield( int n ) { std::map idGroups; - int id = 0; + auto id = 0; for (int gid = 0; gid < n; ++gid) { idGroups[id] = gid; id += 1;