You just posted the answer yourself: the "dos.h" include does not exist. OnlineGBD is hosted on a Linux machine, hence this header is not available. So clrscr() and delay() are not recognized commands.
You can wait with the sleep() command instead. You provide the number of seconds to wait.
system("clear") could be used to clear the console.
The below could work fine on OnlineGDB (and any Linux):
#include<stdio.h>
#include<unistd.h>
int main()
{
system("clear");
printf("NEW YEARS COUNTDOWN\n");
for (int countdown = 10; countdown >= 0; countdown--)
{
printf("%d\n", cx_gbm);
sleep(1);
}
for (int countdown = 7; countdown >= 0; countdown--)
{
printf("BoomBoomBoom\n");
sleep(1);
}
return 0;
}