From a822045642f914fb8ee0b52f706d20a7e2c4b5e5 Mon Sep 17 00:00:00 2001 From: xusun000 <2235861811@qq.com> Date: Wed, 1 Dec 2021 16:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2009_code_lastK.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2009_code_lastK.cpp b/2009_code_lastK.cpp index 970853e..3f9ad48 100644 --- a/2009_code_lastK.cpp +++ b/2009_code_lastK.cpp @@ -28,7 +28,8 @@ int getLastK(NODE* p, int k) { int main() { NODE p; - create(&p, (int[]) { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }, 0, 10); + int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; + create(&p, a, 0, 10); int ret = getLastK(&p, 7); return 0; } \ No newline at end of file