Can you please tell the error in the code for even after odd question

#include
using namespace std;

class node
{
public:
int data;
node *next;

node(int d)
{
    data=d;
    next=NULL;
}

};

void Display(node *p)
{
while(p!=NULL)
{
cout<data<<" ";
p=p->next;
}
}

void Create(node *&head,int n)
{
int ele;
cin>>ele;
head=new node(ele);
node *last=head;
node *t=NULL;

for(int i=0;i<n-1;i++)
{
    cin>>ele;
    t=new node(ele);
    last->next=t;
    last=t;
}

}

node * CreateOdd(node *p)
{
node *h1=new node(p->data);
node *last=h1;
node *t;
if(h1!=NULL)
{
t=new node(p->data);
last->next=t;
last=t;
}
return h1;
}

node * CreateEven(node *p)
{
node *h2=new node(p->data);
node *last=h2;
node *t;
if(h2!=NULL)
{
t=new node(p->data);
last->next=t;
last=t;
}
return h2;
}

node * EvenAfterOdd(node *head)
{
node *p;
node *head1;
node *head2;
while(p!=NULL)
{
if(p->data%2!=0)
{
head1=CreateOdd§;
}
else
{
head2=CreateEven§;
}
p=p->next;
}
p=head1;
while(p->next!=NULL)
{
p=p->next;
}
p->next=head2;

return head1;

}

int main()
{
int n;
cin>>n;
node *head=NULL;
Create(head,n);
head=EvenAfterOdd(head);
Display(head);

}

hi @Mukul-Shane-1247687648773500, please share the code on ide.codingblocks .com big code is difficult to read here

how to share on ide.codingblocks .com

@Mukul-Shane-1247687648773500,
login
write and save code
share the url after saving

the site is taking a lot of time to load and I am unable to share the code as it is really laggy

I am unable to load anything on ide.codingblocks.com. there’s too much delay .

I have submitted the code here. please check

hi @Mukul-Shane-1247687648773500, do you still have issue i can see you got 100 points?