Replace all Pi (Recursion)

My array is not getting printed. Can someone help?
problem : https://hack.codingblocks.com/app/contests/1945/1381/problem
Code : https://ide.codingblocks.com/s/370348

Hey @arunimakhanna11

int main() {
	int n;
    cin>>n;//u forgot this lol
	char a[10000]; //increased size
	while(n>0){
		cin>>a;
		replacePi(a, 0);
		cout<<a<<endl;//added endl
		n--;
	}
	return 0;
}

If this resolves your query then please mark it as resolved :slight_smile:

1 Like

Oh! How did I miss that. Thanks a lot :smiley:

1 Like