I have this code that I a suppose to debug. I am not sure what is the problem I am facing. Please help and advice.
#include <iostream>
#include <cstring>
using namespace std;
int main(){
char *x="23489";
char *y="99";
int *z;
int c=0;
int n=strlen(x);
int n2=strlen(y);
z = new int[n+1];