my code https://ide.codingblocks.com/s/43368
You can refer this article :https://stackoverflow.com/questions/32685540/unordered-map-with-pair-as-key-not-compiling