title: "No Matching Function for call" Error
body: <p>I'm working on this project where I have to take input from a file into a vector, then break apart that vector and send elements of it into a class. I'm trying to build a test of the class person but I'm getting this error when I try to do so.</p>
  
  <p>Error:</p>
  
  <pre><code>C:\Users\Eric\Dropbox\CSE 2122 - C++\Project Files\Homework09\main.cpp:57: error: no matching function for call to `person::person(int, std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;)'
  C:\Users\Eric\Dropbox\CSE 2122 - C++\Project Files\Homework09\main.cpp:9: note: candidates are: person::person(const person&amp;)
  C:\Users\Eric\Dropbox\CSE 2122 - C++\Project Files\Homework09\main.cpp:17: note:                 person::person(int, std::vector&lt;float, std::allocator&lt;float&gt; &gt;)
  </code></pre>
  
  <p>Main.cpp</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  /* Person Class */
  class person
  {
      public:
          int id;
          vector &lt;float&gt; scores;
          float averageScore;
  
      /* Person Constructor */
      person(int _id, vector&lt;float&gt; _scores)
      {
      id = _id;
      scores = _scores;
  
      int total;
  
      for(unsigned int i = 0; i &lt; _scores.size(); i++)
      {
          total += _scores[i];
      }
  
      averageScore = (total / _scores.size());
      }
  };
  
  /* Function Prototypes */
  string getFileName();
  void readFile(string fileName, vector &lt;int&gt; &amp;tempVec);
  
  /* Main */
  int main()
  {
      vector &lt;int&gt; tempVec;
      vector &lt;int&gt; tempVec2;
  
      tempVec2.push_back(56);
      tempVec2.push_back(98);
      tempVec2.push_back(78);
      tempVec2.push_back(89);
  
      int personCount = 0;
  
      vector &lt;person&gt; personVector;
  
      string fileName = getFileName();
  
      readFile(fileName, tempVec);
  
      personCount = (tempVec.size())/(4);
  
      person eric = person(110, tempVec2);
  
  
  }
  
  /* getFileName Function */
  string getFileName()
  {
      string fileName;
      cout &lt;&lt; "Enter the file you wish to read from: ";
      cin &gt;&gt; fileName;
  
      return fileName;
  }
  
  /* readFile Function */
  void readFile(string fileName, vector &lt;int&gt; &amp;tempVec)
  {
      float x = 0;
  
      ifstream fin;
  
      fin.open(fileName.c_str(), ios::in);
  
      if(!fin.is_open())
      {
          perror(fileName.c_str());
          exit(10);
      }
  
      while(!fin.fail())
      {
          fin &gt;&gt; x;
          tempVec.push_back(x);
      }
  
      fin.close();
  }
  </code></pre>
  
  <p>Any thoughts?</p>