Error in Shallow copy and Deep copy

I m unable to run this code. Error shows X was not declared in this scope. Its simple but i m stuck in that.

@Tanish hey Tanish In the line 19 you have written strcpy(name,X.name) but there was not any X so how can you access such variable. your statement should be replaced by strcpy(name, n)