Ad
  • Custom User Avatar

    Add inside your if statement :

    cout<< "adding:" <<msg[count] << " for i=" << i<< endl;
    

    And it should be clear for you why it doesn't work.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution