It is showwing run timee error.Pl tell the mistake
Code not working
I would suggest you to check for the underline mistakes in your code if you would ever face runtime errors.
1.Invalid memory access during run-time.
2.Accessing linked list nodes that do not exist.
3.Dividing by zero.
4.Large allocation of memory together/Large Static Memory Allocation.
5.Making a silly mistake.
In your code you have done the 5th mistake which is most common.
Solution: examine each statement of the program carefully and sequentially in order to find the mistake.
Hint: check the inner loop. (j)
Hopefulky, this will help you. If you still have doubts feel free to ask.