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

  • Home
  • SEARCH
  • 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 9135399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:49:09+00:00 2026-06-17T08:49:09+00:00

I am getting the following error using Visual Studio: 41 IntelliSense: expected an identifier

  • 0

I am getting the following error using Visual Studio:

41 IntelliSense: expected an identifier

I have no idea what this is trying to say and any help would be appreciated! 😀

Here is the program:

#include <stdio.h>
#include <math.h>

int
main(void)
{
         long long d;
     long long p;

     //Ask for numbers of days as long as input is not between 28 and 31

    do
    {
    printf("How may days are in your month?\n");
    d = GetInt();
    }
    while (d<28 || d>31);


    //Ask for numbers of pennies for day 1 as long as input is negative



    printf("How many pennies do you have");
    do
    {
        p = GetInt();
    }
    while ("p<0");


    //Sum up the pennies, pennies = (pennies*2)*2..*2

    int 1;
    for (i=0; i<= d-1; i++);
        {

            p=p*pow(2,i);
        }       
    printf("%lld\n", p);
    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-17T08:49:10+00:00Added an answer on June 17, 2026 at 8:49 am
    int 1;
    for (i=0; i<= d-1; i++);
    

    Here you have int 1; so the compiler is looking for a variable name such as int x = 1;
    Now the for loop, remove that ; from the end

    inside the main the first two lines you have are

    long long d;
    long long p;
    

    Here long is a type, so change those lines to

    long d;
    long p;
    

    At the end of you file i see }', here remove the ' character

    In addition, I can see you have while ("p<0"); as the while condition, here "p<0" is a string, you might want to change it to p<0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Visual Studio 2008 Express edition, and keep getting the following error: Cascadedisplay.h(4)
I'm using visual studio 2003 and I'm getting the following linking error in my
I am using Visual Studio 2005. While debugging code I am getting following error
I am getting following error while building my vc++ project (Using visual studio 2010)
I am getting following error when I am trying to get WebResponse using WebResponse
I am getting the following error when trying to update an object using nhibernate.
I am getting following error in my C# visual studio project: The type or
I am using Visual Studio 2010 Express and I am getting the following errors
I am getting following error message when using Doctrine ORM in Codeigniter. ( !
I am Getting following error on exporting the video using [exportSession exportAsynchronouslyWithCompletionHandler:^ Error: -[TiBlob

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.