TEMA

Wrong Answer 5%

gbueno22 preguntado 4 years ago

Pregunta resuelta. Código eliminado.

Este tema fue resuelto y no puede recibir nuevas respuestas.

  • feodorv respondido 4 years ago

               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.

  • gbueno22 respondido 4 years ago

    @Feodorv, thanks!