title: How to define a map with key as a enum and value as an integer in c++11/c++14?
body: <pre><code>enum Symbols
  {
      BAR,
      BELL,
      PLUM,
      ORANGE,
      CHERRY,
      DOESNOTMATTER,
  }wheel1, wheel2, wheel3;
  
  map&lt;Symbols[3], int&gt; symb = {{{BAR, BAR, BAR}, 250},
                                {{BELL, BELL, BELL}, 20},
                                {{BELL, BELL, BAR}, 20},
                                {{PLUM, PLUM, BAR}, 14},
                                {{PLUM, PLUM, PLUM}, 14},
                                {{ORANGE, ORANGE, BAR}, 10},
                                {{ORANGE, ORANGE, ORANGE}, 10},
                                {{CHERRY, CHERRY, CHERRY}, 7},
                                {{CHERRY, CHERRY, DOESNOTMATTER}, 5},
                                {{CHERRY, DOESNOTMATTER, DOESNOTMATTER}, 2}};
  </code></pre>
  
  <p>I have defined an enumerator named Symbols. I am trying to create a map, who's key is a Symbols enum array and value is an integer.</p>
  
  <p>When I try to run this program, I get an error "<strong>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:268:11: Array initializer must be an initialiser list</strong>".</p>
  
  <p>What am I doing wrong here? I have tried inserting the values too. The error is the same.</p>