Fehler: erwartet Bezeichner

Ich erhalte die folgende Fehlermeldung, die mit Visual Studio:

41 IntelliSense: erwartet Bezeichner

Ich habe keine Ahnung, was das ist versucht zu sagen, und jede mögliche Hilfe würde geschätzt! 😀

Hier ist das Programm:

#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;
}`
Schreibe einen Kommentar