bugs de crash resolvidos mas output.txt nao imprime a frequencia media