Code giving segmentation fault

I could not understand why my code is giving segmentation fault.

https://ide.codingblocks.com/s/231149 Here is the code

@ayusdas2000 hey ,apne vectors ke size lene me koi dikkt kr rakhi hai ,to when programme runs to woh out of index element acess krrha hai.

thanks, found it actually there was something wrong with incrementing loop variable

@ayusdas2000 ok bro glad you get it,happy coding and feel free to ask any doubt.