0_0_34955848_29901.cpp: In function 'int getindex(int, int, int*)': 0_0_34955848_29901.cpp:19:27: error: 'time' was not declared in this scope srand((unsigned)time(NULL)); ^