The essence of the task: " Display the ordinal numbers of words in the string that match the entered word" .
The question is how to compare the entered word with the word in the string, i.e. how to iterate through the entire line and find the same matching word.