Hi,
Although I'm not sure what you are attempting to do next line is wrong:
Code:
for (int i = 0, i < 5; i++ ;); /// line 17
It should be
Code:
for (int i = 0; i < 5; i++);
Anyway, above expression is useless because of ';' at the end (out of parenthesis). It just iterates 5 times doing nothing else.

There's another compiler mistake. StringArray is a vector of strings. You sorting there as if they were a vector of ints?
Code:
sort (s.begin(), s.end(), greater<int>());
Hope this helps.

Albert.