As im new i dont know much. so like if in the question it is mentioned to take an array(c++) of size n and do some modifications, so like we actually need to only take an array or can we take vector(c++) as well? are we supposed to create the same variable names as well as data structres mentioned in the question? codechef allow users to create structures according to thier will and i have already practiced a lot on codechef(250+ questions) to know that we dont actually need to create the same data structures or variables. have suffered a lot due to this in the last contest. Please help!
The only thing matter is what your program outputs for each tests. You're free to do whatever you want in your code.
What matters is receiving the input correctly and returning the output correctly. the rest is on your own.