CCCPaste

Untitled

#include 
#include 
#include 
#include 
#include 
using namespace std;
typedef long long ll;
    
int main()
{
    string s = "black red green yellow";
    string tmp = "";
    for(int i = 0; i < s.size(); i++) {
        if(s[i] == ' ') {
            cout << tmp << endl;
            tmp = "";
        }
        else {
            tmp += s[i];
        }
    }
    cout << tmp << endl;

    return 0;
}
// 2222222222
// 22222222222