Not able to complete the code

Pls help in submission

@A17LP0014 I checked your submitted code, your logic is almost fine but your code has lots of logical+syntax errors. Major ones are:

  1. There is no t , so don’t input it (only n and val are required)
  2. you have v,v2 as arrays but you pass them as vectors.
  3. Sort the final v3 vector and then print it.
  4. unbalanced Bracket.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.