title: Receiving an error when requesting members for an array
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;vector&gt;
  using namespace std;
  
  int winnings[4] = {0,0,0,0};
  int* p_winnings = winnings;
  
  void CalculateGame(int* p_games);
  
  int main()
  {
      int games[6] = {12,13,14,23,24,34};
      int* p_games = games;
      int favorite_team,games_played,team1,team2,score1,score2,i;
      ifstream data("DATA11.txt");
      data &gt;&gt; favorite_team &gt;&gt; games_played;
      vector&lt;int&gt; standings(4);
      for (i = 0;i &lt; 4; i++)
          standings[i] = 0;
      for (i = 0;i &lt; games_played;i++)
      {
          data &gt;&gt; team1 &gt;&gt; team2 &gt;&gt; score1 &gt;&gt; score2;
          if (score1 &gt; score2)
              standings[team1 - 1] += 3;
          if (score1 == score2)
              standings[team1-1]++,standings[team2-1]++;
          if (score1 &lt; score2)
              standings[team2-1] += 3;
          for (i = 0; i &lt; games.size();i++)
          {
              int temp1,temp2,temp;
              temp = games[i];
              temp2 = temp % 10;
              temp /= 10;
              if (temp2 == team2 &amp;&amp; temp == team1)
                  games.erase(i);
          }
      }
  }
  </code></pre>
  
  <p>Why when i request for a member(like .size() or .erase() ) of the array games i get an error saying "request for member <em>_</em>_ in games which is of a non-class type int [6]"</p>