Lotto: fix warning and compilation