You are saying that your function returns an int and you are not..
[color=red]int[/color] getRGB(String req) {
static int colors[3];
...
return(colors);
}
change the signature, colors is an array of int, so the variable name is a pointer to an int (so an int *)
Using the String class is not a good idea in general