Size is creating problem

https://ide.codingblocks.com/s/241394… I did with arrays but size was creating error…then I did with map but with map also , it is showing error plz help

https://ide.codingblocks.com/s/241395… this is code in which I used array … plz help asap

you can make arrays of size 10^8, just make it global!