Wrong Answer 5%

Gabriel Bueno asked 1 year ago

Question solved. Code removed.

This topic was solved and cannot recieve new replies.

  • feodorv replied 1 year 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.

  • Gabriel Bueno replied 1 year ago

    @Feodorv, thanks!