#include <iostream>
#include <string>
using namespace std;
class ColorPicker {
public:
string Color[7] = { "red" , "orange", "yellow", "green", "blue", "indigo", "violet" };
friend ostream& operator << (ostream& out, const ColorPicker& ob)
{
for(int i=0; i<7;i++)
{
out<< (ob.Color[i])<<" | ";
}
return out;
}
};
int main()
{
ColorPicker ob;
cout <<ob<<endl;
//system("pause");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQ29sb3JQaWNrZXIgewpwdWJsaWM6CgogICAgICAgIHN0cmluZyBDb2xvcls3XSA9IHsgInJlZCIgLCAib3JhbmdlIiwgInllbGxvdyIsICJncmVlbiIsICJibHVlIiwgImluZGlnbyIsICJ2aW9sZXQiIH07CiAgICAgICAgCiAgICAgICAgZnJpZW5kICBvc3RyZWFtJiBvcGVyYXRvciA8PCAob3N0cmVhbSYgb3V0LCBjb25zdCBDb2xvclBpY2tlciYgb2IpCiAgICAgICAgewogICAgICAgIAlmb3IoaW50IGk9MDsgaTw3O2krKykKICAgICAgICAJewogICAgICAgIAkJb3V0PDwgKG9iLkNvbG9yW2ldKTw8IiB8ICI7CiAgICAgICAgCX0KICAgICAgICAJcmV0dXJuIG91dDsKICAgICAgICB9Cgp9OwoKaW50IG1haW4oKQp7CglDb2xvclBpY2tlciBvYjsKICAgIGNvdXQgPDxvYjw8ZW5kbDsKICAgLy9zeXN0ZW0oInBhdXNlIik7IAogICAgcmV0dXJuIDA7Cn0=