From 6314f437dbb1374e336b28bc80d1ac65b7cd3a9d Mon Sep 17 00:00:00 2001 From: Misha Date: Thu, 2 Oct 2025 20:53:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20task3-2.0.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task3-2.0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task3-2.0.cpp b/task3-2.0.cpp index 6aff75a..b8eb22b 100644 --- a/task3-2.0.cpp +++ b/task3-2.0.cpp @@ -1,7 +1,7 @@ #include using namespace std; -int* first3Pos(int* a, int n, int& res_n) { +int* Pos(int* a, int n, int& res_n) { int* tmp = new int[3]; res_n = 0; for (int i = 0; i < 3 && i < n; ++i) @@ -62,7 +62,7 @@ int main() { for (int i = 0; i < n; ++i) cout << arr[i] << " "; cout << endl; - searchFunc arrFunc[3] = { first3Pos, last3, min3 }; + searchFunc arrFunc[3] = { Pos, last3, min3 }; int choice; do {