Insert into the set
s . insert ( a [ i ] ) ; k -- ; } } if ( k > 0 ) { cout << X << " ▁ Moran ▁ numbers ▁ are " << " ▁ not ▁ present ▁ in ▁ the ▁ array " << endl ; return ; } set < int > :: iterator it ; for ( it = s . begin ( ) ; it != s . end ( ) ; ++ it ) { cout << * it << " , ▁ " ; } cout << endl ; }