sorting

How can I add strings in c programming?

Above all, the program will get a number of students and a number (card) that each student draws.
for example, input would be 2 lines:
5
0 1 1 3 2

And then the output would be:
4 2 5 3 1

There are 5 students called 1,2,3,4,5. (5 student…