Test case is generating error

https://ide.codingblocks.com/s/43044
my code for count sort it is running well on small inputs but when i submit it is generating error for test case

You have made such a small mistake , you have to define the size of freq array larger than max, because array element can be larger than size N.

https://ide.codingblocks.com/s/43112 corrected your code

thanks for correction . that was a silly one