请问一下这是为什么啊,说error C2040: “twoSum”:“int *(int *,int,int,int *)”与“int ()”的间接寻址级别不同
程序代码:
main(){ int nums[] = {2,7,11,15}; int target = 9; int nsize = 4; int *rs; int *x; x = twoSum(nums,nsize,target,rs); } ////////////////////////////////////////main int* twoSum(int* nums, int numsSize, int target, int* returnSize){ int *a = (int *)malloc(sizeof(int) * 2); int i, j; for (i = 0; i < numsSize - 1; i++) { for (j = i + 1; j < numsSize; j++) { if (nums[i] + nums[j] == target) { a[0] = i; a[1] = j; *returnSize = 2; return a; } } } *returnSize = 0; return a; }