Why my test case is not passing

#include
using namespace std;

void duplicate(char *s)
{
if(s[0]==’\0’)
return;

    if(s[0]=='p'&&s[1]=='i')
    {
        int i=0;
        while(s[i]!='\0')
        {
            
            i++;
        }
        
        while(i>0)
        {
            s[i+2]=s[i];
            i--;
        }
        s[0]='3';
        s[1]='.';
        s[2]='1';
        s[3]='4';
        duplicate(s);
        
    }
    duplicate(s+1);

}
int main() {
int t;
cin>>t;
while(t–)
{
string s;
cin>>s;
int l=s.length();
char c[1000];
for(int i=0;i<l;i++)
{
c[i]=s[i];
}
duplicateΒ©;
cout<<c;
cout<<endl;
}
return 0;
}

Hi @ayushwahi3005,
can u pls share ur code again through ide.codingblocks.com.
Pls try to use ide.codingblocks.com to share code from next tym since some character change and some are omitted when u post a code directly here.