title: What is the data type of pair's element in vector?
body: <p>I need to temporary declare firstElement from pair which is in vector</p>
  
  <pre><code>vector&lt;pair&lt;char*, int&gt; &gt; rezVector; //is  vector I'm using
  auto tempPair = rezVector[0].first; //Is solution I got, but my teacher won't accept (I must know data type)
  </code></pre>
  
  <p>I've already tried</p>
  
  <pre><code>char tempPair;
  char* tempPair;
  char tempPair[20];
  </code></pre>
  
  <p><strong>EDIT</strong>
  For those, who want to know how I use it:</p>
  
  <pre><code> sort(rezVector.begin(), rezVector.end(), compareFn);
  char*&amp; tempPair = rezVector[0].first; //Already with solution
  for(int i=0; i&lt;m; i++){
      for(int j=i+1; j&lt;m-1; j++){
          if(rezVector[i].second == rezVector[j].second){
              if(strcmp(rezVector[i].first, rezVector[j].first)&gt;0){
                  tempPair = rezVector[i].first;
                  rezVector[i].first = rezVector[j].first;
                  rezVector[j].first = tempPair;
              }
          }
      }
  }
  </code></pre>