Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7805659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:17:28+00:00 2026-06-02T02:17:28+00:00

I am using Visual Studio. When I try to compile my code, I get

  • 0

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.

My code looks like this:

#include <iostream>
#include <cmath>
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 << "\nThe distance between A and C is " << sol1 << endl;
    cout << "The distance between B and D is " << sol1 << endl;
    cout << "\nIsosceles = " << ans;

    return 0;
}

int main()
    {
    double AX, AY, BX, BY, CX, CY, DX, DY;

    cout << "AX: ";
    cin >> AX;

    cout << "\nAY: ";
    cin >> AY;

    cout << "\nBX: ";
    cin >> BX;

    cout << "\nBY: ";
    cin >> BY;

    cout << "\nCX: ";
    cin >> CX;

    cout << "\nCY: ";
    cin >> CY;

    cout << "\nDX: ";
    cin >> DX;

    cout << "\nDY: ";
    cin >> DY;

    hexISOS(AX, AY, BX, BY, CX, CY, DX, DY);

    return 0;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:17:29+00:00Added an answer on June 2, 2026 at 2:17 am

    That thing where you can use a data type once and then a bunch of variable names – as in the first line of your main function – I don’t think you can do that in the parameter list of a function. Try doing this and see if that helps:

    int hexISOS(double AX, double AY, double BX, double BY, double CX, double CY, double DX,
            double DY)
    

    Edit: Another thing I don’t think is legal is this:

    long double sol1, sol2;
    

    You’ll probably need to change it to either something like this:

    long sol1;
    double sol2;
    

    or something like this:

    double sol1, sol2;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem Description: Occassionally when debugging, I get the following error. I'm using visual studio
How do you compile assembly code using Visual Studio? I want to compile and
When I try to compile my c++ project using Visual Studio 2010 in either
I'm trying to compile a small COM dll (using visual studio 2008 pro), and
When I try to compile I get this error: 1>------ Build started: Project: snake,
I have some code compiled using Visual Studio 2010 (C++), with Qt for the
I'm getting compile error in this code #include<iostream> #include<cstdio> #include<string> using namespace std; void
I'm currently trying to compile a PHP driver for MongoDB using Visual Studio 2008
I'm compiling sqlite3 using Visual Studio 2008. When I try to single-step into any
Using Visual Studio 2008, I created a C++ Win32 project. To release the program,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.