please need some help urgenlty
dunno whats the problem though tried every test case and it all worked fine
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
string adjust(string word,int m)
{
int len=word.length();
if(len<=85){
for(int i=0;i<len;i++)
{
if(i>=m-1)
{word[i]=word[i+1];
}
else
{word[i]=word[i];}}
//word[len-1]='\0';
return word;}}
int main(int argc, char *argv[])
{
int x;
cin>>x;
int* y=new int[x];
string* s;
string m;
s=new string[x];
char word[81];
for(int i=0;i<x;i++)
{
cin>>y[i]>>word;
s[i]=word;
}
system("CLS");
for(int j=0;j<x;j++)
{
m=adjust(s[j],y[j]);
if(m[0]=='\0')
{cout<<"\n";}
else{
cout<<j+1<<" "<<adjust(s[j],y[j])<<endl;}
}
system("PAUSE");
return EXIT_SUCCESS;
}