Wrong Answer 5%
Dúvida resolvida. Código removido.
Este tópico foi resolvido e não pode receber novas respostas.
if (arrayPal[j][k] == 32){ if (arrayPal[j][k+1] != 32 ){ cout << arrayPal[j][k+1]; }
If k is arrayPal[j].size()-1 then k+1 is arrayPal[j].size() which is out of array bounds.
@Feodorv, thanks!