Print distinct numbers

enter ten number: 1 2 3 2 1 6 3 4 5 2
the distinct number are:1 2 3 6 4 5

code:

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
    cout<<"enter ten number"<<endl;
    int arr[10];
    for(int i=0;i<10;i++){
        cin>>arr[i];
    }
    for(int i=0;i<10;i++){
        int s=0;
        for(int j=0;j<10;j++){
            if(arr[i]==arr[j])
                s++;
        }
        bool is=true;
        if(s>1){
            for(int l=0;l<i;l++){
                //cout<<l<<arr[l]<<arr[i]<<endl;
                if(arr[l]==arr[i])
                    is=false;
            }
        }
        if(is){
            cout<<arr[i]<<" ";
        }
    }
    return 0;
}