#include <cs50.h>
#include <stdio.h>
int main (void)
    printf("get the value of x \n");
    int x = getint();
    printf("y \n");
    int y = getint();
    printf("addition of %d and %d is %d \n", x,y, x+y);
    return 0;

adder program and error msg

//error msg
//adder.c:6:13: error: implicit declaration of function 'getint' is invalid in C99
int x = getint();
1 error generated.
jharvard@appliance (~/Downloads): 

1 Answer 1


That's GetInt(), not getint(). C is case sensitive.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .