How to return nothing from vector


#1
vector<int> Solution::maxset(vector<int> &A) {


int n = sizeof(A)/sizeof(A[0]);
int sum=1;
vector<int> x,y;
for(int i=0;i<n;i++){
    sum+=A[i];
    if(A[i]>=0){
        y.push_back(A[i]);
    } 
    else{
        if(y.size()>x.size()){
            x = y;
        }
        y.clear();
        
    }
    if(i==n-1){
        if(y.size()>x.size()){
            x = y;
        }
    }
}
if(x.size()==0){
  x.empty();
}

return x ;

}


#2

you can return the empty vector.