Question regarding counting sort?

can you please explain the code of counting sort?

hey @kushagrathebest, Consider the below code and read the comments. https://ide.codingblocks.com/s/79242

there is an error coming in the line ++freq[a[i]]; }

there is an error coming in the line ++freq[a[i]]; the error is invalid type int[int] for array subscript

hey @kushagrathebest, Consider this one once https://ide.codingblocks.com/s/88094