When I try to compile with make file, I get the following error

/usr/local/include/cs50.h:177:91: note: expanded from macro 'get_float'
#define get_float(...) __extension__ IF_ELSE(ISEMPTY(__VA_ARGS__))(WARN(get_float(NULL)))(get_float(__VA_ARGS__))
/usr/local/include/cs50.h:70:24: note: expanded from macro 'IF_0_ELSE'
#define IF_0_ELSE(...) __VA_ARGS__

1 Answer 1


This is because you forgot to include the code inside of a main function.

int main()
  // your code here,

You must log in to answer this question.

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