> srand(time());
You need to include stdlib.h and time.h
Then you'll see time() needs a parameter.

> main
int main
at the start, and finish with
return 0;

> printf("%d ", (rand() % 49) +1);
rand() gives you a new result each time, try
printf("%d ", randomNum);