Couldn’t get the error. some syntax mistake is going on.
Target Sum Triplets
@rhythm9 change line 44 to cout << arr[i] << ", " << arr[min] << " and " << arr[max] << endl;
Your code is still wrong as it is considering the same element twice, for eg 1 1 8 is not possible because 1 is given only once in the array but your code is giving it as output. Secondly, all output are not printed, for eg 2 3 5 is not being printed