Not able to use two maps in problem 451


  • 0
    Y

    Hi

    I'm not able to use two maps in problem 451. I've declared a map<char, int>, now I want to use another map<int,char> but I'm facing a compiler error
    "conflicting declaration 'std::map<int, char>"
    I tried this on my machine and it works perfectly. Can anyone explain the reason behind this compiler error ?

    Thanks in advance


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.