# Must compounds formed between solids be a solid as well?

My teacher gave us a long list of compounds and asked whether they are solid, liquid, or gas at room temperature and normal atmospheric pressure. I only know the more common compounds (eg. carbon dioxide, ammonia) and elements but not the rest.

Can I assume that a compound is solid because its constituent elements are solids at normal temperatures and pressures as well? If so, does the same goes with liquids and gases? If so, what if its constituting elements are not of the same physical state?

If not, then how can I determine the answer? Or must I memorize the physical state of the compounds in order to answer the questions?

Examples: $$\ce{Hg~(liquid) + Br2~(liquid) -> HgBr2~(solid)}$$ $$\ce{C~(solid) + S~(solid) -> CS2~(liquid)}$$