Please look at the problems I am having which are listed below: Write a program that inputs 10 integers from the user into an array, and removes the duplicate array elements. By removing, I meant that you should make it appear as if the elements hadn't been there. So not just setting duplicates to an "empty" value, but filling in the gap. That means moving all the later elements back one (kind of like when you hit backspace in the middle of a line in a text editor). Or alternatively, storing only the non-repeating elements. You may assume that all the integers are between 0 and 100, Write at least 1 function in addition to the main function, and pass an array into that function as a parameter. Output should look exactly like below. Two rows. Program Input: 0 1 2 3 4 5 6 7 8 9 Program Output: Please enter 10 integers, hitting return after each one: \n 0 1 2 3 4 5 6 7 8 9 Program Input: 100 100 100 100 100 100 100 100 100 100 100 Program Output: Please enter 10 integers, hitting return after each one: \n 100 Program Input: 11 11 22 22 33 33 44 44 55 55 Program Output: Please enter 10 integers, hitting return after each one: \n 11 22 33 44 55 Program Input: 12 37 12 37 45 88 101 21 21 101 Program Output: Please enter 10 integers, hitting return after each one: \n 12 37 45 88 101 21 I have: #include<iostream> using namespace std; void eliminate(int a[], int& siz) { int i,n=0; bool b[101]={false}; for(i=0;i<siz;i++) b[a[i]]=true; for(i=0;i<101;i++) if(b[i]) a[n++]=i; siz=n; } int main() { int nums[10]; int i,n=10; cout<<"Please enter 10 integers, hitting return after each one: \n"; for(i=0;i<n;i++) cin>>nums[i]; eliminate(nums,n); cout<<endl; for(i=0;i<n;i++) cout<<nums[i]<<" "; return 0; } --- PROBLEMS I AM HAVING --- 1) After, cout<<"Please enter 10 integers, hitting return after each one: \n"; I receive 2 "/n" how do I only receive one "\n" after the colon. 2) For my last output, I receive 12 12 21 37 45 88 when I should be receiving 12 37 45 88 101 21