Run time error . Help please

hello @apoorvagupta1
u were getting runtime error becuase the size of array was 100 which is not sufficient (becuase value of n can be greater than that)
check now->