Counting sort run error


it is showing run error but it works fine on sample code

Hello @manthansrivastav1234 i have corrected your code:


if you have any doubt you can ask here:
Happy Learning!!

what was the benefit of defining that array outside means size constraint was10^6 so what was the use of such large size array

and how are using #define long long int int not #define int long long int as we use#define limit 5

Hello @manthansrivastav1234 i have not defined long long int int it was in your code by you only.
and in main we can define the array max of size 1e6 only.
Happy Learning!!

ok thanks .i got that

@manthansrivastav1234 you can mark this doubt as resolved.
Happy Learning!!

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.