A few things:
1. This is a C++ forum and that is C code.
2. I compiled it on the same compiler as yours and it works fine, change return 1 to return 0
3. When you compile it, make sure it reads .c not .cpp under file type, this could be why
although you can compile C code on a C++ compiler
4. If you get it to work, try this next
Code:
#include <stdio.h>
int main()
{
int age;
printf("How old are you: ");
scanf("%d", &age);
if ( age < 50 )
{
printf("\nYou are young!");
}
else
{
printf("\nYou are mature");
}
getchar();
return 0;
}