Learned borrowing from Latin compactus.
Practice speaking and memorizing "compacto" and many other words and sentences in Portuguese.