I'm doing a little game in C (college project) and am encountering an error in main, it follows:
int main () {
int x, y, i, j, linha, cnt=1, jl=0, jc=0, jogada_a=0, jogada_b=0;
char coluna, jogador;
srand(time(NULL));
x = (rand() % 5) +2;
y = (rand() % 5) +2;
gerar();
matriz[x][y] = '0';
}
The error requests time declaration:
error: 'time' was not declared in this scope