title: How would i read this file into a map c++
body: <p>I am struggling to figure out how to read this file into a map. I started by reading the file into a vector. And then was trying to take the string value in the vector and inserting that into a map. I am completely lost.</p>
  
  <p>The first value is the key and the ordered pairs are the values. I need to be about to add "infinite number of values"</p>
  
  <pre><code>1 2,1 8,2
  2 1,1 3,1
  3 2,1 4,1
  4 3,1 5,1
  5 4,1 6,1
  6 5,1 7,1
  7 6,1 8,1
  8 7,1 1,2
  </code></pre>
  
  <p>Current reading code:   </p>
  
  <pre><code>int main(int argc, char const *argv[]){
  
       map&lt;int, string&gt; map;
       vector&lt;string&gt; v;
       vector&lt;int&gt;    v2;
       string line;
       string fileName(argv[1]);
       ifstream inputFile;
       inputFile.open(fileName);
  
       while(getline(inputFile, line)){
           v.push_back(line);
       }
  
      return 0;
  }
  </code></pre>