#include <stdio.h>
#include <stdlib.h>


typedef struct vector{
 int size,count;
 int *data;
} vector;
vector *getNewVector(int n){
    vector *p=(vector*)malloc(sizeof(vector))
    p->size=n;
    p->count=0;
    p->data=(int*)malloc(sizeof(int)*n);
    return p;
}
int insert(vector*v,int pos,int val)
{   if(pos<0||pos>v->count)
    if(v->size==v->count)return 0;
    for(int i=v->count-1;i>=pos;i--){
        v->data[i+1]=v->data[i];
    }
    v->data[pos]=val;
    v->count+=1;
    return 1;
}
int erase(vector *v,int pos)
{
    if(pos<0||pos>=v->count)
    for(int i=pos+1;i<v->cout;i++){
        v->data[i-1]=v->data[i];
        v->count-=1;
        retun1;
    }
}
void clear(vector*v){
    if(v=NULL)return;
    free(v->data);
    free(v);
    return;
    
}
int main() {
    
	return 0;
}