Problem 4sum
User ChenXuan
Submission Time 2024-10-05 17:27:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4sum.cpp: In function ‘int main()’:
4sum.cpp:42:30: error: ‘arr’ was not declared in this scope; did you mean ‘arrD’?
42 | CDsum[counter] = arr[x] + arrD[y];
| ^~~
| arrD
4sum.cpp:52:31: error: cannot convert ‘bool’ to ‘int*’ in initialization
52 | int *p = binary_search(CDsum, CDsum + C*D, searchNum); //pointer to the element being searched
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| bool