I am getting segmentation fault while doing insertion of key and value to map. I have tried a lot and searched on stack overflow also. I know the reason, why it is happening