Problem :
I am currently doing an exercise from the textbook and the book is very outdated, so I am tring to figure out how it really fits into the current system as you go along. Following is the exact text but it is returning error
'Implicit conversion loses integer precision: 'time_t' (aka 'long') to 'unsigned int''.
It is on this srandom(time(NULL)); line.
If I try to replace time with time_t, then it comes up with another error message as below :
Unexpected type name 'time_t': unexpected expression.
I have no idea what either of them mean. The question which I read with the same error was apparently something trying to do with 64- and 32- bit integers but, actually, I don't know what that actually means. How to fix this error?