Counting_Sort problem

Why is it giving run error??

Can you please explain where is the mistake in my code?

Can you please explain where is the mistake in my code?

it seems that the large input file is not working well with the code
the code seems perfectly fine


the code is encountering time limit at this stmt itself.

instead of using such a tedious method
u can simply try out my algo where u count freq of each digit and print it that many times in the output