title: How to use a type array in map in c++
body: <p>I want to have something like dictionary and because of this matter I used map. I want the "key" be an int and "value" to be an array. To reach this, I did the following but I can not go further, </p>
  
  <pre><code>typedef std::string RelArr[2];
  std::map&lt;int,RelArr&gt; mymap;
  </code></pre>
  
  <p><strong>Problem</strong> I can not assign anything to "value" </p>
  
  <pre><code>mymap.insert(myintnumber,"ValueOfFirstIndex","ValueOfSecondIndex");
  </code></pre>
  
  <p>I receive this error:</p>
  
  <pre><code>Multiple markers at this line
      - deduced conflicting types for parameter ‘_InputIterator’ (‘int’ and ‘const char*’)
      - candidates are:
      - no matching function for call to ‘std::map&lt;int, std::basic_string&lt;char&gt; [2]&gt;::insert(int, const char [3], const char 
       [19])’
  </code></pre>