#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int * arr;
int len, temp, i, j;
arr
= (int*) calloc(len
, sizeof(int));
for(i = 0; i < len; i++)
for (i = len - 1; i > 0; i--)
{
for (j = 0; j < i; j++)
{
if (arr[j] > arr[j + 1])
{
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
}
for(i = 0; i < len; i++)
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpCnsKICAgIGludCAqIGFycjsKICAgIGludCBsZW4sIHRlbXAsIGksIGo7CiAgICAKICAgIHNjYW5mKCIlZCIsICZsZW4pOwogICAgYXJyID0gKGludCopIGNhbGxvYyhsZW4sIHNpemVvZihpbnQpKTsKICAgIAogICAgZm9yKGkgPSAwOyBpIDwgbGVuOyBpKyspCiAgICAgICAgc2NhbmYoIiVkIiwgJmFycltpXSk7CiAgICAKICAgIGZvciAoaSA9IGxlbiAtIDE7IGkgPiAwOyBpLS0pCiAgICB7CiAgICAgICAgZm9yIChqID0gMDsgaiA8IGk7IGorKykKICAgICAgICB7CiAgICAgICAgICAgIGlmIChhcnJbal0gPiBhcnJbaiArIDFdKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICB0ZW1wID0gYXJyW2pdOwogICAgICAgICAgICAgICAgYXJyW2pdID0gYXJyW2orMV07CiAgICAgICAgICAgICAgICBhcnJbaisxXSA9IHRlbXA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBmb3IoaSA9IDA7IGkgPCBsZW47IGkrKykKICAgICAgICBwcmludGYoIiVkXG4iLCBhcnJbaV0pOwogICAgCiAgICBmcmVlKGFycik7CiAgICByZXR1cm4gMDsKfQ==