#include
#include
using namespace std;
int main() {
int n,x;
cout<<"n = "; cin>>n;
int a[n];
for (int i=0; i>a[i];
cout<<"x = "; cin>>x;
int i=0;
while (i if (a[i]==x) {
for (int j=i; j n--; i--;
}
i++;
}
for (int i=0; i cout<<endl;<br> system("pause");
return 0;
}
n = 8
1 5 9 1 2 7 1 3
x = 1
5 9 2 7 3