title: error: ambiguous overload for 'operator>>' in 'std::cin >> qualifyForDiscount'|
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  void calculateCarpetSize (int length, int width)
  {
      float carpetSize = (length * width);
      cout.setf(ios::fixed);
      cout.precision(0);
  }
  
  void calculateCarpetPrice (float carpetSize, float sellingPrice )
  {
      float carpetPrice = ( carpetSize * sellingPrice );
  }
  
  void calculateCarpetCost (float carpetSize, float sellingPrice )
  {
      float salesTax = 0.14;
      float carpetCost = (carpetSize * sellingPrice * salesTax);
      cout.precision(2);
  }
  
  void calculateLabourCost ( float carpetSize, float labour)
  {
      labour = 24.00;
      float labourCost = carpetSize * labour;
  }
  
  bool qualifyForDiscount (int customerNumber)
  {
      if ( customerNumber &lt; 99999)
      {
          void computeDiscount (float carpetCost);
          return true;
      }
      else
      {
          return false;
      }
  }
  
  void computeDiscount (float carpetCost, float discountPercentage)
  {
      cout &lt;&lt; "Enter the percentage discount ." &lt;&lt; endl;
      cin &gt;&gt; discountPercentage;
      float carpetCostDiscount = carpetCost * discountPercentage;
  }
  
  void printCustomerStatement( )
  {
      cout.setf(ios::fixed);
      cout &lt;&lt; endl;
      cout &lt;&lt; "CROSWELL CARPET STORE" &lt;&lt; endl;
      cout &lt;&lt; "STATEMENT" &lt;&lt; endl;
  }
  
  int main()
  {
      int customerName;
      int customerSurname;
      int customerNumber;
      float carpetSize;
      float carpetPrice;
      float sellingPrice;
      float salesTax = 0.14;
      float labourCost;
      int labour = 24.00;
      float length;
      float width;
      float discount;
      float discountPercentage;
  
      cout.setf(ios::fixed);
      cout.precision(2);
  
      cout &lt;&lt; "Please enter the information" &lt;&lt; endl;
      cout &lt;&lt; "Enter the customer's first name: " &lt;&lt; endl;
      cin &gt;&gt; customerName;
      cout &lt;&lt; "\n Enter customers surname: " &lt;&lt; endl;
      cin &gt;&gt; customerSurname;
      cout &lt;&lt; "\n The length of the room: " &lt;&lt; endl;
      cin &gt;&gt; length;
      cout &lt;&lt; "\n Enter the width of the room: " &lt;&lt; endl;
      cin &gt;&gt; width;
      cout &lt;&lt; "\n Enter the carpet selling price: " &lt;&lt; endl;
      cin &gt;&gt; sellingPrice;
  
      int printCustomerStatement;
  
      {
          cout &lt;&lt; "\n Customer name   :    " &lt;&lt; endl;
          cin &gt;&gt; customerName &gt;&gt; customerSurname ;
          cout &lt;&lt; "Customer number   :    " &lt;&lt; endl;
          cin &gt;&gt; customerNumber;
          cout &lt;&lt; "\n Carpet price   :    " &lt;&lt; endl;
          cin &gt;&gt; carpetPrice;
          cout &lt;&lt; "Labour   :    " &lt;&lt; endl;
          cin &gt;&gt; labour;
          cout &lt;&lt; "\n Subtotal   :    " &lt;&lt; endl;
          cin &gt;&gt; carpetPrice;
          cout &lt;&lt; "Less Discount   :    " &lt;&lt; endl;
          cin &gt;&gt; qualifyForDiscount;
          cout &lt;&lt; "\n Subtotal: " &lt;&lt;endl;
          cin &gt;&gt; carpetPrice;
          cout &lt;&lt; "Plus tax: " &lt;&lt; endl;
          cin &gt;&gt; salesTax;
          cout &lt;&lt; "Total: " &lt;&lt; endl;
          cin &gt;&gt; carpetPrice;
      }
  
      return 0;
  }
  </code></pre>
  
  <p>There is an error and I cant figure out how to solve it.</p>
  
  <blockquote>
    <p>error: ambiguous overload for 'operator>>' in 'std::cin >> qualifyForDiscount'</p>
  </blockquote>
  
  <p>Please help me out.</p>