When giving a compliment, it is important to be sincere. Try to be specific to what you are complimenting. “Great job!”, may be sincere, but, “You did a great job presenting the financial report!”, gives an understanding to what someone did well.
There’s an old saying, “If you don’t have anything nice to say, then don’t say anything.” But be careful not to make something nice up – just to say something.