Shittiest compiler


#1

The code works fine for custom output but shows wrong answer when it is submitted!!
`
int n = A.size();

int start = 0;

while(A[start]!= B){
    start++;
}

int j = start+1;

while(j<n){
    
    if(A[j]!=B){
        swap(A[start++],A[j]);
    }
    
    j++;
}

return start;

`


#2

I think you also need to remove elements in the array.