Counting sort (test case not passing)

Following is the link of my counting sort code -
http://ide.codingblocks.com/#/s/18692

test case #1 is not passing…

the output is correct but the testcase #1 is not clear

in the question the input is taken so cin the values not just defined it
http://ide.codingblocks.com/#/s/18695
check this

Oh yeah got it …
Thanks a lot !