Can you explain what you are trying to do a bit more. I ran the program and didn't understand what I was trying to do. Looking at the code, you read 4 colors from the command line, then you try to compare the input colors to the ordered list of colors you hard coded? I don't get the point?
Also, you should use compare() to compare strings:
http://programmingexamples.net/index.php?title=CPP/Strings/Compare
David