hey, this is my final code for the subject::

Code:
#include<iostream>
#include<conio.h>
#include<stdlib.h>

using namespace std;
int cstay=0, cgarb=0;
int numero[100];
int io(int);
main()
{
    int numbers;
    cin>>numbers;
    if (numbers>100 || numbers<1) { system("cls"); main(); }
    else { io(numbers);  }
    getch();
}  
int io(int numbers)
{
    int garb[cgarb], stay[cstay], temp=0;
     for (int x=0; x!=numbers; x++)
    {
        cin>>numero[x];
    }    
    for (int y=0; y!=numbers; y++)
    {
        if (temp==numero[y]) {  garb[cgarb]=numero[y]; cgarb++; }
        else { stay[cstay]=numero[y]; cstay++;}
        temp=numero[y];
    }
    system("cls");
    for (int a=0; a!=cstay; a++)
    {
        
        cout<<"#"<<a+1<<" - "<<stay[a]<<endl; 
    }
    cout<<"\nDuplicates are: ";
    for (int b=0; b!=cgarb; b++)
    {
        cout<<" "<<garb[b]; 
    }
    
}