C++ function problem about jumble game

I wrote this code but i have problem in 25. line (srand(static_cast(time(0))):wink: someone can help me about it?

#include<string>
#include<stdlib.h>
#include <iostream>
#include <algorithm>

using namespace std;

string words[7][2] =
{
    {"ATATURK", "The founder of the Turkish Republic and one of the greatest leaders in the world"},
    {"FUTBOL", "The famous and most loved sport in Turkey."},
    {"TUZLA", "Eastern district of Istanbul, Istanbul city starts from here"},
    {"ADALAR", "One of the best places in Istanbul, you can go there only by ferry."},
    {"ACM221", "The course that you are doing its exam right now :D"},
    {"YEDITEPE", "The university that follows the Ataturk's renaissance"},
    {"LAHMACUN", "Famous and most delicious food in Turkey"}
};

int main() {
    std::cout << "Welcome to Turkish Word Jumble!\n";
    std::cout << "Unscramble the letters to make a word.\n";
    std::cout << "Enter hint for a hint.\n";
    std::cout << "Enter quit to quit the game.\n";

    srand(static_cast<unsigned int>(time(0)));
    int word_index = rand() % 7;
    bool quit = false;
    
    while(!quit) {
        
        string word = words[word_index][0];
        string scrambled_word = word;
        random_shuffle(scrambled_word.begin(), scrambled_word.end());
        
        std::cout << "The jumble is: " << scrambled_word << "\n";
        
        string input;
        cin >> input;
        
        while(true) {
            cout << "Your guess: ";
            cin >> input;
            cout << input << "\n";
            if (input == "hint") {
                cout << words[word_index][1]<< "\n";
                continue;
            } else if (input == "quit") {
                return 0;
            } else if (input != word) {
                cout << "Sorry, that's not it." << "\n";
            } else {
                cout << "That's it! You guessed it!" << "\n";;
            }
        }
    }
    return 0;
}

is this the expected output ?

image

I just run it in an online compiler, and there are no errors