Segue comando utilizado no prompt de comando e a saída:
gcc *.cpp -o forca.exe
sorteia_palavra.cpp: In function 'void sorteia_palavra()':
sorteia_palavra.cpp:10:11: error: 'time' was not declared in this scope; did you mean 'tm'?
10 | srand(time(NULL));
| ^~~~
| tm