I have tried to realize set by basic metods via struct. This is my variant:
#include <iostream>
using namespace std; 
struct Set<T> {
    int n;
    T[n] elements;
}
int main(){
    struct Set microSet;
    int oneElm, length;
    cin>>length;
    microSet.n=length;
    for(int i=0;i<length;i++) {
        cin>>oneElm;
        microSet.elements[i]=oneElm;
    }
    for(int i=0;i<length;i++) 
        cout << microSet.elements[i];
    return 0;
}
Compilator shows me an error related with sruct. What've I done wrong?
 
     
    