HF RL Explorer

Task: Iterate Over Words in a C++ String

Task: Iterate Over Words in a C++ String: a task in Terminal-Lego-15k (Harbor dataset). Write a C++ program that iterates over the words of a string composed of words separated by whitespace and outputs each word on a separate line.

The task

Write a C++ program that iterates over the words of a string composed of words separated by whitespace and outputs each word on a separate line.

Part of PrimeIntellect/Terminal-Lego-15k.