Why is my code not giving any output

hello @Souradeep-Kundu-824545687968212
pass ur map by reference .
ie


should be

for reason -> please read the differnce between pass by value and pass by reference.

https://ide.codingblocks.com/s/225851 why this works without &

because array is always passed by pointer.

read the difference between pass by value,pass by reference and pass by pointer.

can you provide a good source geeks of geeks has a very simple and basic example which doesn’t solve my problems, thnx.