#include <sys/time.h>#include <cmath>#include <cstdlib>#include <stdlib.h>
extern double drand48();extern long lrand48(/*long*/);extern int rand();extern void srand(long seedval);
//main programmain(){
//set random number generatorstruct timeval tp;struct timezone tzp;gettimeofday(&tp,&tzp);srand48(tp.tv_usec); //compilation error occurs here: [Error] 'srand48' was not declared in this scope}