错误:从'int'到'int *'的无效转换[-fpermissive]。我在下面提供了我的代码,我是编码的新手,请随时帮助我;)

问题描述 投票:-2回答:2

I have provided the screenshot of the code and the error is also visible i don't understand the error and will appreciatle any kind of help.

c++ arrays sorting pointers
2个回答
0
投票

您需要创建一个指向数组的指针,然后将其赋予合并功能。或在指向数组的链接上替换merge(* int arr1,int n1,* int arr2,int n2,* int ans


0
投票

merge声明为void merge(int*, int, int*, int, int*)。但是在main中,您将其称为

© www.soinside.com 2019 - 2024. All rights reserved.