Cum means with in Latin. If you buy shares cum-dividend, you are buying them at a time when you will be entitled to receive the next dividend.
This is as opposed to ex-dividend. If restrictions on entitlement to dividends didnt exist, people would simply buy shares the day before the dividend was due, collect it and then sell them the day after.