This is my code. It is working fine on my local ide but showing a compile message of run error here. How can I resolve it? #include<bits/stdc++.h>
using namespace std;
void Tripletsum(int N,int arrays[],int key){
for(int i=0;i<N;i++){
int current=key-arrays[i];
int low=i+1;
int high=N-1;
while(low<high){
if(arrays[low]+arrays[high]==current){
cout<<arrays[i]<<", “<<arrays[low]<<” and "<<arrays[high]<<endl;
low++;
high–;
}
else if(arrays[low]+arrays[high]>current){
high–;
}
else{
low++;
}
}
}
}
int main() {
int n,arr[100], target;
cin>>n;
for(int i=0;i<n;i++){
cin>>arr[i];
}
cin>>target;
sort(arr,arr+n);
Tripletsum(n,arr,target);
return 0;
}