I have downloaded the code as shown in the demo. I am running 'make debug' after 'cd debug' and I do not understand why the code below is receiving the "debug.c:9:5: error: use of undeclared identifier 'name'" upon compilation. This use of syntax appears differently than in a typical C program, for example, when using char str[50], scanf("%s", &str), and printf("Name: %s", str). Would you please provide me with a hint(as to where I am going wrong) and explain the difference between the typical syntax used in C versus the cs50 syntax that is used below?
#include <stdio.h>
#include <cs50.h>
int main(void)
{
string name, location;
// Ask for your name and where live
name = get_string("What is your name? ");
location = get_string("Where do you live? ");
// Say hello
printf("Hello, %s, from %s!", name, location);
}
End of Question
Beginning of Reply
Please see screenshot of latest attempt to compile debug.c program. I am still receiving an error message despite including 'cs50.h' and 'stdio.h' within the header as included instructions for the compiler. Please reply back with any recommendation that you think would work to correct the issue.