title: IntelliSense: identifier "[blank]" is undefined for each of the variables used in my function
body: <p>I am using Visual Studio. When I try to compile my code, I get an error saying  21  "IntelliSense: identifier "[blank]" is undefined" for each of the variables used in the "hexISOS" function. I have defined these variables later on in the code and was wondering if anybody could tell me what is wrong.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  using namespace std;
  
  int hexISOS(double AX, AY, BX, BY, CX, CY, DX, DY)
  {
      long double sol1, sol2;
      bool ans;
  
      sol1 = sqrt(pow((AX - CX), 2) + pow((AY - CY), 2));
      sol2 = sqrt(pow((BX - DX), 2) + pow((BY - DY), 2));
  
      if(sol1 == sol2)
      {
      ans = true;
      }
  
      else
      {
      ans = false;
      }
  
      cout &lt;&lt; "\nThe distance between A and C is " &lt;&lt; sol1 &lt;&lt; endl;
      cout &lt;&lt; "The distance between B and D is " &lt;&lt; sol1 &lt;&lt; endl;
      cout &lt;&lt; "\nIsosceles = " &lt;&lt; ans;
  
      return 0;
  }
  
  int main()
      {
      double AX, AY, BX, BY, CX, CY, DX, DY;
  
      cout &lt;&lt; "AX: ";
      cin &gt;&gt; AX;
  
      cout &lt;&lt; "\nAY: ";
      cin &gt;&gt; AY;
  
      cout &lt;&lt; "\nBX: ";
      cin &gt;&gt; BX;
  
      cout &lt;&lt; "\nBY: ";
      cin &gt;&gt; BY;
  
      cout &lt;&lt; "\nCX: ";
      cin &gt;&gt; CX;
  
      cout &lt;&lt; "\nCY: ";
      cin &gt;&gt; CY;
  
      cout &lt;&lt; "\nDX: ";
      cin &gt;&gt; DX;
  
      cout &lt;&lt; "\nDY: ";
      cin &gt;&gt; DY;
  
      hexISOS(AX, AY, BX, BY, CX, CY, DX, DY);
  
      return 0;
  }
  </code></pre>