#include <stdio.h>
int main ( void ) {
int troca, vetorA[ 10 ] ;
for ( int i = 0 ; i < 10 ; i++ ) {
printf ( "Digite o valor do elemento:" ) ; }
for ( int i = 0 ; i < 10 ; i++ ) { // <=========== Aqui tinha um j < 10 que obviamente causa confusão
for ( int j = i + 1 ; j < 10 ; j++ ) {
if ( vetorA[ i] > vetorA[ j] ) {
troca = vetorA[ i] ;
vetorA[ i] = vetorA[ j] ;
vetorA[ j] = troca;
}
}
}
for ( int i = 0 ; i < 10 ; i++ ) {
}
}
//https://pt.stackoverflow.com/q/58055/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAodm9pZCkgewogICAgaW50IHRyb2NhLCB2ZXRvckFbMTBdOwogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkrKykgewogICAgICAgIHByaW50ZigiRGlnaXRlIG8gdmFsb3IgZG8gZWxlbWVudG86Iik7CiAgICAgICAgc2NhbmYoIiVkIiwgJnZldG9yQVtpXSk7CiAgICB9CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwOyBpKyspIHsgLy8gPD09PT09PT09PT09IEFxdWkgdGluaGEgdW0gaiA8IDEwIHF1ZSBvYnZpYW1lbnRlIGNhdXNhIGNvbmZ1c8OjbwogICAgICAgIGZvciAoaW50IGogPSBpICsgMTsgaiA8IDEwOyBqKyspIHsgIAogICAgICAgICAgICBpZiAodmV0b3JBW2ldID4gdmV0b3JBW2pdKSB7CiAgICAgICAgICAgICAgICB0cm9jYSA9IHZldG9yQVtpXTsKICAgICAgICAgICAgICAgIHZldG9yQVtpXSA9IHZldG9yQVtqXTsKICAgICAgICAgICAgICAgIHZldG9yQVtqXSA9IHRyb2NhOwogICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KICAgIHByaW50ZigiXG52ZXRvciBvcmRlbmFkb1xuIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwOyBpKyspIHsKICAgICAgICBwcmludGYoIiVkIC0gIiwgdmV0b3JBW2ldKTsKICAgIH0KfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvNTgwNTUvMTAx