Eighth question in pdf

how to correct the code ?
i removed the line k++ in codeblocks and tried to run it but still showing error . what are the other mistakes and how to correct them?

it is a doubt regarding eighth question in the pdf

Hello Reechika, k should be of type int* instead of void*