My textbook says to write "i had a nice lunch". But i say some tests where it should be used without a....

Is it wrong to write "i had nice lunch" ?