What is wrong with my code? It is not giving any output .
@avijuneja2007 After line 11 write size.resize(n); You haven’t resized your size vector.