How Can I Fix the error: expected identifier '(' in C

How Can I Fix the error: expected identifier '(' in C

我不明白我做错了什么我已经搜索了几个在线参考资料,但仍然无法弄清楚我做错了什么。这是我的代码

#include <cs50.h>
#include <stdio.h>

int x = 5;

int y=get_int("ENTER DIGIT HERE\n");

if (x>y) {
    printf("HI\n");

}else{
    printf("BYE\n");
} 

基本上你想要这个:

#include <cs50.h>
#include <stdio.h>

int main(void)   // <<<< your code must be in the main function
{
   int x = 5;

   int y=get_int("ENTER DIGIT HERE\n");

   if (x>y) {
     printf("HI\n");
   } else {
     printf("BYE\n")
   }
}