I'd say it depends raju.

If the person is looking melancholy and needs a quick pick-me-up, then compliment away.

If the person is a fun-loving sort with a good sense of humour, you can always say "Really??? What happened?"

If it's somebody you don't particularly care about, I'd say nothing.