Answer:
See explaination
Step-by-step explanation:
#include<iostream>
#include<map>
using namespace std;
bool contains(int arr[], int size){
map<int,int> nums;
for(int i=0; i< size; i++) nums[arr[i]]=1;
int product;
for(int i=0; i<size-1; i++){
for(int j=i+1;j<size;j++){
product = arr[i]*arr[j];
if (nums[product]==1) return true;
}
}
return false;
}
int main(){
int arr[] ={6,4,-3,-2,0,5};
cout<<boolalpha <<contains(arr,5)<<endl;
return 0;
}