0_0_30401261_27007.cpp: In function 'int main()': 0_0_30401261_27007.cpp:42:18: error: 'srand' was not declared in this scope srand(time(NULL)); ^