title: " 'X' not declared in this scope " error
body: <p>I'm very new to programming, I'm just in the 2nd sem of my first year in college so please go easy on the technical terms. We were asked to make a program that reads 10 integers from a file to comprise a list and asks the user to input an integer 'N'. If 'N' is in the list the program should display "FOUND" and "NOT FOUND" if otherwise. I'm getting an error in main about the arguments, it says that 'V', 'N', and 'F' in the function calls "was not declared in this scope".</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;fstream&gt;
  
  using namespace std;
  
  int fRead();
  int iRead();
  bool search(int, int);
  void display(bool);
  
  int main() {
   fRead();
   iRead();
   search(V, N);
   display(F);
   return 0;
  }
  
  int fRead() {
   int V[10], c;
   ifstream fin;
   fin.open("lab02.in");
   for(c=0; c&lt;10; c++)
    fin &gt;&gt; V[10];
   fin.close();
   return V[10];
  }
  
  int iRead() {
   int N;
   cout &lt;&lt; "Input an integer: ";
   cin &gt;&gt; N;
   return N;
  }
  
  bool search(int V[10], int N) {
   bool F = false;
   if(V[10] == N)
    F = true;
   return F;
  }
  
  void display(bool F) {
   if(F == true)
    cout &lt;&lt; "\nFOUND" &lt;&lt; endl;
   else
    cout &lt;&lt; "\nNOT FOUND" &lt;&lt; endl;
  }
  </code></pre>