Can you tell my mistake?

hello @vageesha

in line 123 it should be value in place of key.

whatelse function u have added in the last?

adding complete code for ur reference pls check->link

Sir, in my code bad alloc is coming.

after addition of which function u r getting this error?
have also shared refernce code with u do check that out.

Sir, before using rehashing my program was working fine.

check now->

:cry: