ofSplitString will return a vector of strings, your error is that it doesn’t know how use the = sign with what you are asking it to set ofSplitString results equal too. I guess result is a string but should be a vector of strings…
for example (off the top of my head):
vector < string > myResults = ofSplitString("123, 324, abc, qrx", ",");
for (int i = 0; i < myResults.size(); i++){
cout << myResults[i] << endl;
}